feat(confix): add shorthand flag to set cmd cli (#17175)

This commit is contained in:
zakir-code 2023-07-28 18:49:04 +08:00 committed by GitHub
parent 1a331a6f9f
commit f0c852f7bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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{

View File

@ -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
}