From 65963f95283cdd04db81fcbc902ab43adbea27eb Mon Sep 17 00:00:00 2001 From: Garet Halliday <me@garet.holiday> Date: Tue, 3 Oct 2023 14:12:20 -0500 Subject: [PATCH] adapter --- cmd/commandfuncs.go | 2 +- cmd/commands.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/commandfuncs.go b/cmd/commandfuncs.go index ce71c634..fc9553d0 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 4abd5954..41ceadee 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) -- GitLab