SDL CLI 'remove' -command key search pattern 29/7129/2
authorTimo Tietavainen <timo.tietavainen@nokia.com>
Fri, 26 Nov 2021 01:51:31 +0000 (03:51 +0200)
committerTimo Tietavainen <timo.tietavainen@nokia.com>
Fri, 26 Nov 2021 14:24:57 +0000 (16:24 +0200)
commita5bd11af229cdcbfc973c0b4ab67a9c75f4f76e1
tree3a991e8d0feedf365cb1480ec8d9bac0db440aaa
parent5a95c20a91a868ebf7ddc1350ec918d65780f70c
SDL CLI 'remove' -command key search pattern

Implement a key search pattern support for the sdlcli 'remove' -command.
With this command keys can be removed from SDL DB, removed keys can be
defined for the command either as key name or key search pattern
arguments. Command removes all the SDL DB keys by default, if key or key
search pattern argument is not given for the command.
Command syntax is:
  sdlcli remove <namespace> [<key|pattern>... <keyN|patternN>] [flags]

Issue-Id: RIC-113

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I2cbe20a45aa21a15ee8a8b79abb7667b0307a93f
internal/cli/remove.go
internal/cli/remove_test.go