good morning!!!!

Skip to content
Snippets Groups Projects
Commit 65963f95 authored by Garet Halliday's avatar Garet Halliday
Browse files

adapter

parent 781b579c
No related branches found
No related tags found
Loading
......@@ -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
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment