feat(confix): add shorthand flag to set cmd cli (#17175)
This commit is contained in:
parent
1a331a6f9f
commit
f0c852f7bd
@ -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{
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user