Skip to content

Commit 6358546

Browse files
fix: add ouput flag to config init
1 parent 043698f commit 6358546

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/config.go

+2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ var configConvertCmd = &cobra.Command{
6767
func newConfigCommand() *cobra.Command {
6868
configConvertCmd.Flags().StringP("file", "f", "gatecheck.yaml", "gatecheck validation config file")
6969
configConvertCmd.Flags().StringP("output", "o", "yaml", "Format to convert into formats=[json yaml yml toml]")
70+
configInitCmd.Flags().StringP("output", "o", "yaml", "Format to convert into formats=[json yaml yml toml]")
7071

7172
_ = configConvertCmd.MarkFlagFilename("file", "json", "yaml", "yml", "toml")
73+
_ = configInitCmd.MarkFlagFilename("file", "json", "yaml", "yml", "toml")
7274

7375
configCmd.AddCommand(configInitCmd, configConvertCmd)
7476
return configCmd

0 commit comments

Comments
 (0)