diff --git a/cmd/commandfuncs.go b/cmd/commandfuncs.go index ce71c63421973d6da8e4a0bc00a522949d3f5188..fc9553d06b221608f4e331bb48dfad5dedcf04a5 100644 --- a/cmd/commandfuncs.go +++ b/cmd/commandfuncs.go @@ -763,7 +763,7 @@ func configFileWithRespectToDefault(logger *zap.Logger, configFile string) (stri const defaultGatfile = "Gatfile" // if no input file was specified, try a default Gatfile if the Gatfile adapter is plugged in - if configFile == "" && caddyconfig.GetAdapter("caddyfile") != nil { + if configFile == "" && caddyconfig.GetAdapter("gatfile") != nil { _, err := os.Stat(defaultGatfile) if err == nil { // default Gatfile exists diff --git a/cmd/commands.go b/cmd/commands.go index 4abd59545b12d71db4af924a18e779abf30cd1a1..41ceadee3d98cac64c2b66dad51527398bf2de24 100644 --- a/cmd/commands.go +++ b/cmd/commands.go @@ -265,7 +265,7 @@ zero exit status will be returned. `, CobraFunc: func(cmd *cobra.Command) { cmd.Flags().StringP("config", "c", "", "Configuration file to adapt (required)") - cmd.Flags().StringP("adapter", "a", "caddyfile", "Name of config adapter") + cmd.Flags().StringP("adapter", "a", "gatfile", "Name of config adapter") cmd.Flags().BoolP("pretty", "p", false, "Format the output for human readability") cmd.Flags().BoolP("validate", "", false, "Validate the output") cmd.RunE = WrapCommandFuncForCobra(cmdAdaptConfig)