Implement SDL CLI 'remove' -command 68/7068/3
authorTimo Tietavainen <timo.tietavainen@nokia.com>
Mon, 15 Nov 2021 19:33:15 +0000 (21:33 +0200)
committerTimo Tietavainen <timo.tietavainen@nokia.com>
Wed, 17 Nov 2021 07:22:26 +0000 (09:22 +0200)
commitb1cc9affa891649332fb034f648e44514624a956
tree275579c82dc18408171b85e35f07b15df09ba3c1
parentb22d4dc6d46c936cf1b41837a8aaeb41abd7e6b5
Implement SDL CLI 'remove' -command

Implement a new 'remove' -command for 'sdlcli' -tool. With this
command single or many keys under given namespace can be removed
from SDL DB. Command syntax is:
  sdlcli remove <namespace> <key> [<key2>... <keyN>] [flags]
For the time being only -h and --help flags are supported with the
'remove' -command.

Issue-Id: RIC-113

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I4b68689ae9ec388372298f0445f714a5bdb23f3b
internal/cli/cli_private_fn_test.go
internal/cli/remove.go [new file with mode: 0644]
internal/cli/remove_test.go [new file with mode: 0644]
internal/cli/types.go
internal/mocks/db_mocks_private_testing.go