Skip to content

Commit

Permalink
feat(confix): add shorthand flag to set cmd cli (#17175)
Browse files Browse the repository at this point in the history
  • Loading branch information
zakir-code authored Jul 28, 2023
1 parent 1a331a6 commit f0c852f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/confix/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/spf13/cobra"
)

// ConfigComamnd contains all the confix commands
// ConfigCommand contains all the confix commands
// These command can be used to interactively update an application config value.
func ConfigCommand() *cobra.Command {
cmd := &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions tools/confix/cmd/mutate.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func SetCommand() *cobra.Command {
}

cmd.Flags().BoolVar(&FlagStdOut, "stdout", false, "print the updated config to stdout")
cmd.Flags().BoolVar(&FlagVerbose, "verbose", false, "log changes to stderr")
cmd.Flags().BoolVar(&FlagSkipValidate, "skip-validate", false, "skip configuration validation (allows to mutate unknown configurations)")
cmd.Flags().BoolVarP(&FlagVerbose, "verbose", "v", false, "log changes to stderr")
cmd.Flags().BoolVarP(&FlagSkipValidate, "skip-validate", "s", false, "skip configuration validation (allows to mutate unknown configurations)")

return cmd
}
Expand Down

0 comments on commit f0c852f

Please sign in to comment.