Code Review
/
ric-plt
/
sdlgo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Rename Master and Slave to Primary and Replica
[ric-plt/sdlgo.git]
/
internal
/
cli
/
get.go
diff --git
a/internal/cli/get.go
b/internal/cli/get.go
index
de4f80c
..
f22ae73
100644
(file)
--- a/
internal/cli/get.go
+++ b/
internal/cli/get.go
@@
-43,16
+43,19
@@
func init() {
var (
getLong = `Display one or many resources.
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.
# 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 {
)
func newGetCmd(sdlCb SyncStorageCreateCb) *cobra.Command {