aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/commands.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2020-03-06 23:24:09 -0700
committerMatthew Holt <[email protected]>2020-03-06 23:26:13 -0700
commitb216d285dfe8784796d3f6597545c59aa4bec279 (patch)
tree92a949a75c1460b0aabac97c7d2831222d91a460 /cmd/commands.go
parent3f5d27cd5da8f3ad53e4b794d34703922c9b824e (diff)
parentb8cba62643abf849411856bd92c42b59b98779f4 (diff)
downloadcaddy-b216d285dfe8784796d3f6597545c59aa4bec279.tar.gz
caddy-b216d285dfe8784796d3f6597545c59aa4bec279.zip
Merge branch 'certmagic-refactor' into v2
Diffstat (limited to 'cmd/commands.go')
-rw-r--r--cmd/commands.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/commands.go b/cmd/commands.go
index 37ede3aad..f98fbfa11 100644
--- a/cmd/commands.go
+++ b/cmd/commands.go
@@ -274,6 +274,8 @@ directly instead of printing it.`,
// This function panics if the name is already registered,
// if the name does not meet the described format, or if
// any of the fields are missing from cmd.
+//
+// This function should be used in init().
func RegisterCommand(cmd Command) {
if cmd.Name == "" {
panic("command name is required")