Skip to content

Commit

Permalink
Merge pull request #3040 from ActiveState/mitchell/dx-2462
Browse files Browse the repository at this point in the history
Do not attempt to autoupdate during `state config set`.
  • Loading branch information
mitchell-as authored Jan 22, 2024
2 parents 626ed95 + b2ab1e2 commit ce50fe0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/state/internal/cmdtree/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func newConfigGetCommand(prime *primer.Values) *captain.Command {

func newConfigSetCommand(prime *primer.Values) *captain.Command {
params := config.SetParams{}
return captain.NewCommand(
cmd := captain.NewCommand(
"set",
locale.Tl("config_set_title", "Set config value"),
locale.Tl("config_set_description", "Set config values using the terminal"),
Expand All @@ -71,5 +71,8 @@ func newConfigSetCommand(prime *primer.Values) *captain.Command {
func(ccmd *captain.Command, args []string) error {
runner := config.NewSet(prime)
return runner.Run(params)
}).SetSupportsStructuredOutput()
})
cmd.SetSkipChecks(true)
cmd.SetSupportsStructuredOutput()
return cmd
}

0 comments on commit ce50fe0

Please sign in to comment.