fix: properly fetch keys for config command
This commit is contained in:
1 parent
aff0c1fc40
commit
88f661b6e7
2 files changed
+2
-1
No files matched your search
@@ -12,7 +12,7 @@ import (
|
|||||||
|
|
||||||
func getKeys(args []string, global bool) []string {
|
func getKeys(args []string, global bool) []string {
|
||||||
keys := args
|
keys := args
|
||||||
if !global && len(keys) > 1 {
|
if !global && len(keys) > 0 {
|
||||||
keys = keys[1:]
|
keys = keys[1:]
|
||||||
}
|
}
|
||||||
return keys
|
return keys
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ func CommandSet(appName string, pairs []string, global bool, noRestart bool, enc
|
|||||||
if len(pairs) == 0 {
|
if len(pairs) == 0 {
|
||||||
return errors.New("At least one env pair must be given")
|
return errors.New("At least one env pair must be given")
|
||||||
}
|
}
|
||||||
|
|
||||||
updated := make(map[string]string)
|
updated := make(map[string]string)
|
||||||
for _, e := range pairs {
|
for _, e := range pairs {
|
||||||
parts := strings.SplitN(e, "=", 2)
|
parts := strings.SplitN(e, "=", 2)
|
||||||
|
|||||||
Reference in new issue
Block a user