From ae724e1cbd1f1478336a5a2f6b35b6fa93be311d Mon Sep 17 00:00:00 2001 From: axie <152680487+azukiboy@users.noreply.github.com> Date: Fri, 8 Dec 2023 18:28:16 +0800 Subject: [PATCH] chore(tools/confix/cmd): fix typo in view.go (#18659) --- tools/confix/cmd/view.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/confix/cmd/view.go b/tools/confix/cmd/view.go index bab2116c04..0c845ce880 100644 --- a/tools/confix/cmd/view.go +++ b/tools/confix/cmd/view.go @@ -12,7 +12,7 @@ import ( ) func ViewCommand() *cobra.Command { - flagOutputFomat := "output-format" + flagOutputFormat := "output-format" cmd := &cobra.Command{ Use: "view [config]", @@ -31,7 +31,7 @@ func ViewCommand() *cobra.Command { return err } - if format, _ := cmd.Flags().GetString(flagOutputFomat); format == "toml" { + if format, _ := cmd.Flags().GetString(flagOutputFormat); format == "toml" { cmd.Println(string(file)) return nil } @@ -48,7 +48,7 @@ func ViewCommand() *cobra.Command { } // output flag - cmd.Flags().String(flagOutputFomat, "toml", "Output format (json|toml)") + cmd.Flags().String(flagOutputFormat, "toml", "Output format (json|toml)") return cmd }