)
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,
return nil
},
}
+ cmd.SetOut(os.Stdout)
+ return cmd
}
func runGet(sdlCb SyncStorageCreateCb, args []string) (map[string]interface{}, error) {