Implement SDL CLI 'get namespaces' -command 03/7103/2
authorTimo Tietavainen <timo.tietavainen@nokia.com>
Tue, 23 Nov 2021 06:32:04 +0000 (08:32 +0200)
committerTimo Tietavainen <timo.tietavainen@nokia.com>
Tue, 23 Nov 2021 06:52:36 +0000 (08:52 +0200)
commit277f322e53bb123783c0945a78a263ca79c5dd2a
tree011cd5a5b4f7be2d1b80f24f3c71d6fd7ddf299a
parent09f04dae6b7602251d68ea37c8664cdc0bb61019
Implement SDL CLI 'get namespaces' -command

Implement a new 'get namespaces' -command for 'sdlcli' -tool. With this
command user can list all the namespaces found in database. Command
syntax is:
  sdlcli get namespaces [flags]
Supported flags are -g, --group, -h and --help flags. With -g,--group
flag user can get a list of namespace per SDL cluster group address and
-h, --help flags shows the command help.

Issue-Id: RIC-113

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