Skip to content

Commit

Permalink
fix: set name of correct context when creating (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
theSuess authored Jan 4, 2024
1 parent 8913a0b commit 5aee7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func Set(path string, value string) error {

func CreateContext(name string) error {
viper.Set(CURRENT_CONTEXT, name)
viper.Set("contexts.default.name", name)
viper.Set(fmt.Sprintf("contexts.%s.name", name), name)
return Write()
}

Expand Down

0 comments on commit 5aee7ad

Please sign in to comment.