Implement SDL CLI 'set' -command 35/7035/6
authorTimo Tietavainen <timo.tietavainen@nokia.com>
Thu, 11 Nov 2021 13:51:39 +0000 (15:51 +0200)
committerTimo Tietavainen <timo.tietavainen@nokia.com>
Mon, 15 Nov 2021 14:52:51 +0000 (16:52 +0200)
commitb22d4dc6d46c936cf1b41837a8aaeb41abd7e6b5
tree135076b00df35a68752c72fe58105ee65eeb1b47
parentc4c3a872e6afa2476919f502436826e44c456b9d
Implement SDL CLI 'set' -command

Implement a new set -command to 'sdlcli' -tool. With this command one
string key-value pair can be set to SDL DB under given namespace.
Command syntax is:
  sdlcli set <namespace> <key> <value> [flags]
For the time being only -h and --help flags are supported with the
set -command.

Issue-Id: RIC-113

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