From f0c852f7bdb9c7d4c41d06a1a3ec94905a338827 Mon Sep 17 00:00:00 2001 From: zakir-code <80246097+zakir-code@users.noreply.github.com> Date: Fri, 28 Jul 2023 18:49:04 +0800 Subject: [PATCH] feat(confix): add shorthand flag to `set` cmd cli (#17175) --- tools/confix/cmd/config.go | 2 +- tools/confix/cmd/mutate.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/confix/cmd/config.go b/tools/confix/cmd/config.go index 8ee2e371a992..6ceb6247a2a4 100644 --- a/tools/confix/cmd/config.go +++ b/tools/confix/cmd/config.go @@ -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{ diff --git a/tools/confix/cmd/mutate.go b/tools/confix/cmd/mutate.go index 1a59c1845134..0f3c030d385b 100644 --- a/tools/confix/cmd/mutate.go +++ b/tools/confix/cmd/mutate.go @@ -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 }