Skip to content

Commit

Permalink
chore(tools/confix/cmd): fix typo in view.go (#18659)
Browse files Browse the repository at this point in the history
  • Loading branch information
bodhi-crypo committed Dec 8, 2023
1 parent ba3448a commit ae724e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/confix/cmd/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

func ViewCommand() *cobra.Command {
flagOutputFomat := "output-format"
flagOutputFormat := "output-format"

cmd := &cobra.Command{
Use: "view [config]",
Expand All @@ -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
}
Expand All @@ -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
}

0 comments on commit ae724e1

Please sign in to comment.