Skip to content

Commit

Permalink
fix: add ouput flag to config init
Browse files Browse the repository at this point in the history
  • Loading branch information
BacchusJackson committed May 21, 2024
1 parent 043698f commit 6358546
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ var configConvertCmd = &cobra.Command{
func newConfigCommand() *cobra.Command {
configConvertCmd.Flags().StringP("file", "f", "gatecheck.yaml", "gatecheck validation config file")
configConvertCmd.Flags().StringP("output", "o", "yaml", "Format to convert into formats=[json yaml yml toml]")
configInitCmd.Flags().StringP("output", "o", "yaml", "Format to convert into formats=[json yaml yml toml]")

_ = configConvertCmd.MarkFlagFilename("file", "json", "yaml", "yml", "toml")
_ = configInitCmd.MarkFlagFilename("file", "json", "yaml", "yml", "toml")

configCmd.AddCommand(configInitCmd, configConvertCmd)
return configCmd
Expand Down

0 comments on commit 6358546

Please sign in to comment.