Merge branch 'certmagic-refactor' into v2

This commit is contained in:
Matthew Holt
2020-03-06 23:24:09 -07:00
26 changed files with 1161 additions and 540 deletions

View File

@ -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")