Amsterdam can now find a config file using the AMSTERDAM_CONFIG environment variable

This commit is contained in:
2026-03-01 23:12:49 -07:00
parent 967135a3a6
commit c26e7340c7
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -25,7 +25,9 @@
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"args": ["-C", "${workspaceFolder}/test2.yaml"]
"env": {
"AMSTERDAM_CONFIG": "${workspaceFolder}/test2.yaml"
}
},
]
}
+1 -1
View File
@@ -31,7 +31,7 @@ const AMSTERDAM_COPYRIGHT = "2025-2026"
// AmCLI is the command-line interface arguments structure.
type AmCLI struct {
ConfigFile string `arg:"-C,--config" help:"Location of the configuration file."`
ConfigFile string `arg:"-C,--config,env:AMSTERDAM_CONFIG" help:"Location of the configuration file."`
DebugPanic bool `arg:"--debug-panic" help:"Development Only - disable Echo panic recovery"`
BuggyAttachments bool `arg:"--buggy-attachments" help:"Some attachments may be buggy - truncate data if necessary"`
}