We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b37178f commit 8fbb629Copy full SHA for 8fbb629
cmd/object_create.go
@@ -90,13 +90,13 @@ var createCmd = &cobra.Command{
90
description := data.(map[interface{}]interface{})["description"].(string) + ": "
91
92
if _default, ok := data.(map[interface{}]interface{})["default"].(string); ok {
93
- description = description + " [" + _default +"] "
+ description = description + " [" + _default + "] "
94
config[data.(map[interface{}]interface{})["tag"].(string)] = _default
95
}
96
fmt.Print(description)
97
98
value, _ := reader.ReadString('\n')
99
- if len(value) != 1 {
+ if len(strings.TrimSpace(value)) != 0 {
100
config[data.(map[interface{}]interface{})["tag"].(string)] = strings.TrimSuffix(value, "\n")
101
102
0 commit comments