summaryrefslogtreecommitdiff
path: root/cmd/cobra.go
AgeCommit message (Collapse)Author
2023-10-11cmd: Fix exiting with custom status code, add `caddy -v` (#5874)Francis Lavoie
* 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-02-24cmd: Expand cobra support, add short flags (#5379)Francis Lavoie
* cmd: Expand cobra support * Convert commands to cobra, add short flags * Fix version command typo Co-authored-by: Emily Lange <git@indeednotjames.com> * Apply suggestions from code review Co-authored-by: Matt Holt <mholt@users.noreply.github.com> --------- Co-authored-by: Emily Lange <git@indeednotjames.com> Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2023-01-21chore: Fix typo, coral -> cobra (#5325)Y.Horie
2022-10-17cmd: Add missing `\n` to HelpTemplate (#5151)BakaFT
2022-09-01cmd: Don't print long help text on errorMatthew Holt
2022-08-30cmd: Enhance CLI docsMatthew Holt
2022-08-30cmd: Migrate to `spf13/cobra`, remove single-dash arg support (#4565)Mohammed Al Sahaf
* cmd: migrate to spf13/cobra * add `manpage` command * limit Caddy tagline to root `help` only * hard-code the manpage section to 8