diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/commandfuncs.go | 2 | ||||
-rw-r--r-- | cmd/commands.go | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cmd/commandfuncs.go b/cmd/commandfuncs.go index 4f86aa8..8ab9099 100644 --- a/cmd/commandfuncs.go +++ b/cmd/commandfuncs.go @@ -35,7 +35,7 @@ import ( "github.com/caddyserver/caddy/v2" "github.com/caddyserver/caddy/v2/caddyconfig" "github.com/caddyserver/caddy/v2/caddyconfig/caddyfile" - "github.com/mholt/certmagic" + "github.com/caddyserver/certmagic" "go.uber.org/zap" ) diff --git a/cmd/commands.go b/cmd/commands.go index 37ede3a..f98fbfa 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") |