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

Co-authored-by: zakir-code <80246097+zakir-code@users.noreply.github.com>
This commit is contained in:
mergify[bot] 2023-07-28 11:31:39 +00:00 committed by GitHub
parent a39e093a9e
commit 8bbed8c675
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
}