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
Update version 0.10.1 and 0.10.2 release notes
[ric-plt/sdlgo.git]
/
internal
/
cli
/
get.go
diff --git
a/internal/cli/get.go
b/internal/cli/get.go
index
f22ae73
..
f56c6a0
100644
(file)
--- a/
internal/cli/get.go
+++ b/
internal/cli/get.go
@@
-59,7
+59,7
@@
Prints namespaces, keys or keys data in the given namespace.`
)
func newGetCmd(sdlCb SyncStorageCreateCb) *cobra.Command {
)
func newGetCmd(sdlCb SyncStorageCreateCb) *cobra.Command {
-
return
&cobra.Command{
+
cmd :=
&cobra.Command{
Use: "get <namespace> <key> [<key2> <key3>... <keyN>]",
Short: "Display one or many resources",
Long: getLong,
Use: "get <namespace> <key> [<key2> <key3>... <keyN>]",
Short: "Display one or many resources",
Long: getLong,
@@
-78,6
+78,8
@@
func newGetCmd(sdlCb SyncStorageCreateCb) *cobra.Command {
return nil
},
}
return nil
},
}
+ cmd.SetOut(os.Stdout)
+ return cmd
}
func runGet(sdlCb SyncStorageCreateCb, args []string) (map[string]interface{}, error) {
}
func runGet(sdlCb SyncStorageCreateCb, args []string) (map[string]interface{}, error) {