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 f05fc9a commit 414b1abCopy full SHA for 414b1ab
config/config.go
@@ -45,7 +45,7 @@ const (
45
DEFAULT = "default"
46
)
47
48
-var NonEmptyConfigKeys = map[string]bool{
+var nonEmptyConfigKeys = map[string]bool{
49
"output": true,
50
"timeout": true,
51
"profile": true,
@@ -354,6 +354,10 @@ func (c *Config) LoadProfile(name string) {
354
355
// UpdateConfig updates and saves config
356
func (c *Config) UpdateConfig(key string, value string, update bool) {
357
+ if nonEmptyConfigKeys[key] && value == "" {
358
+ fmt.Printf("Error: value for '%s' must not be empty\n", key)
359
+ return
360
+ }
361
switch key {
362
case "prompt":
363
c.Core.Prompt = value
0 commit comments