Skip to content

Commit

Permalink
fix(cmd): handle string values properly #127
Browse files Browse the repository at this point in the history
  • Loading branch information
metafates committed Nov 2, 2022
1 parent b9f0504 commit 3bdd3e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ var configSetCmd = &cobra.Command{
var v any
switch config.Default[key].Value.(type) {
case string:
v = value
v = value[0]
case int:
parsedInt, err := strconv.ParseInt(value[0], 10, 64)
if err != nil {
Expand Down

0 comments on commit 3bdd3e8

Please sign in to comment.