X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=internal%2Fcli%2Fget.go;h=f22ae73d516f67b185832ba3c710b7bd8fba024e;hb=ee834c59a83cdd10889b3439a281fe43b9f98839;hp=de4f80c823df1f4b53ed90a8c24733fe1cc1697a;hpb=09f04dae6b7602251d68ea37c8664cdc0bb61019;p=ric-plt%2Fsdlgo.git diff --git a/internal/cli/get.go b/internal/cli/get.go index de4f80c..f22ae73 100644 --- a/internal/cli/get.go +++ b/internal/cli/get.go @@ -43,16 +43,19 @@ func init() { var ( getLong = `Display one or many resources. -Prints keys and keys data in the given namespace.` +Prints namespaces, keys or keys data in the given namespace.` - getExample = ` # Get reads keys data in the given namespace. - sdlcli get sdlns key1 - - # Get reads multiple keys data in the given namespace. - sdlcli get sdlns key1 key2 key3 + getExample = ` # List all the namespaces in database. + sdlcli get namespaces # List keys in the given namespace. - sdlcli get keys sdlns` + sdlcli get keys sdlns + + # Reads key data in the given namespace. + sdlcli get sdlns key1 + + # Read multiple keys data in the given namespace. + sdlcli get sdlns key1 key2 key3` ) func newGetCmd(sdlCb SyncStorageCreateCb) *cobra.Command {