Skip to content

Commit

Permalink
fix: support for missing string type (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chance-fyi authored May 14, 2024
1 parent 2267ceb commit 7056e77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/commands/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ func configSet(v reflect.Value, keys []string, value any) error {
}
} else {
switch v.Field(i).Kind() {
case reflect.String:
v.Field(i).SetString(fmt.Sprintf("%v", value))
case reflect.Bool:
value := fmt.Sprintf("%v", value)
parseBool, _ := strconv.ParseBool(value)
Expand Down

0 comments on commit 7056e77

Please sign in to comment.