caddy/cmd
Francis Lavoie 9c419f1e1a
cmd: Fix exiting with custom status code, add caddy -v (#5874)
* Simplify variables for commands

* Add --envfile support for adapt command

* Carry custom status code for commands to os.Exit()

* cmd: add `-v` and `--version` to root caddy command

* Add `--envfile` to `caddy environ`, extract flag parsing to func

---------

Co-authored-by: Mohammed Al Sahaf <msaa1990@gmail.com>
2023-10-11 09:46:18 -06:00
..
caddy reverseproxy: Mask the WS close message when we're the client (#5199) 2022-11-14 09:38:02 -07:00
cobra.go cmd: Fix exiting with custom status code, add caddy -v (#5874) 2023-10-11 09:46:18 -06:00
commandfuncs.go cmd: Fix exiting with custom status code, add caddy -v (#5874) 2023-10-11 09:46:18 -06:00
commands.go cmd: Fix exiting with custom status code, add caddy -v (#5874) 2023-10-11 09:46:18 -06:00
main_test.go cmd: Enhance .env (dotenv) file parsing 2022-04-13 11:38:20 -06:00
main.go cmd: Fix exiting with custom status code, add caddy -v (#5874) 2023-10-11 09:46:18 -06:00
packagesfuncs.go ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
removebinary_windows.go Fix compilation on Windows 2022-07-28 15:44:36 -06:00
removebinary.go core: Windows service integration (#4790) 2022-07-29 14:06:54 -06:00
storagefuncs.go ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00