good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pggat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gfx
pggat
Commits
65963f95
Commit
65963f95
authored
1 year ago
by
Garet Halliday
Browse files
Options
Downloads
Patches
Plain Diff
adapter
parent
781b579c
No related branches found
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmd/commandfuncs.go
+1
-1
1 addition, 1 deletion
cmd/commandfuncs.go
cmd/commands.go
+1
-1
1 addition, 1 deletion
cmd/commands.go
with
2 additions
and
2 deletions
cmd/commandfuncs.go
+
1
−
1
View file @
65963f95
...
...
@@ -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
(
"
caddy
file"
)
!=
nil
{
if
configFile
==
""
&&
caddyconfig
.
GetAdapter
(
"
gat
file"
)
!=
nil
{
_
,
err
:=
os
.
Stat
(
defaultGatfile
)
if
err
==
nil
{
// default Gatfile exists
...
...
This diff is collapsed.
Click to expand it.
cmd/commands.go
+
1
−
1
View file @
65963f95
...
...
@@ -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"
,
"
caddy
file"
,
"Name of config adapter"
)
cmd
.
Flags
()
.
StringP
(
"adapter"
,
"a"
,
"
gat
file"
,
"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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment