fix(config): accept case-insensitive booleans in config set
This commit is contained in:
parent
abf0c86ab0
commit
bc9d95e8d5
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ var configSetCmd = &cobra.Command{
|
||||||
|
|
||||||
switch f.Kind {
|
switch f.Kind {
|
||||||
case reflect.Bool:
|
case reflect.Bool:
|
||||||
switch raw {
|
switch strings.ToLower(raw) {
|
||||||
case "true":
|
case "true":
|
||||||
f.Field.SetBool(true)
|
f.Field.SetBool(true)
|
||||||
case "false":
|
case "false":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue