aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/commands.go
diff options
context:
space:
mode:
authorLucas VerÍssimo Botelho <[email protected]>2024-10-30 13:48:36 -0300
committerGitHub <[email protected]>2024-10-30 16:48:36 +0000
commitd398898b352a6a7e8ac5c24da01dd948fc334d77 (patch)
tree86bacc6673e8a9c2a07a34629cc2fc0ddbfe5b25 /cmd/commands.go
parenteaaa2e5872ef9e845a50c6aade36676c0ecfe2e2 (diff)
downloadcaddy-d398898b352a6a7e8ac5c24da01dd948fc334d77.tar.gz
caddy-d398898b352a6a7e8ac5c24da01dd948fc334d77.zip
cmd: Allow `add-package` to select version of package (#6665)
* feat: allow versioning of packages * docs: remove xcaddy issue reference
Diffstat (limited to 'cmd/commands.go')
-rw-r--r--cmd/commands.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/commands.go b/cmd/commands.go
index ab4b66d77..ebb57690c 100644
--- a/cmd/commands.go
+++ b/cmd/commands.go
@@ -409,12 +409,13 @@ latest versions. EXPERIMENTAL: May be changed or removed.
RegisterCommand(Command{
Name: "add-package",
- Usage: "<packages...>",
+ Usage: "<package[@version]...>",
Short: "Adds Caddy packages (EXPERIMENTAL)",
Long: `
Downloads an updated Caddy binary with the specified packages (module/plugin)
-added. Retains existing packages. Returns an error if the any of packages are
-already included. EXPERIMENTAL: May be changed or removed.
+added, with an optional version specified (e.g., "package@version"). Retains
+existing packages. Returns an error if any of the specified packages are already
+included. EXPERIMENTAL: May be changed or removed.
`,
CobraFunc: func(cmd *cobra.Command) {
cmd.Flags().BoolP("keep-backup", "k", false, "Keep the backed up binary, instead of deleting it")