diff --git a/cmd/cobra.go b/cmd/cobra.go index 8da99aee..203b7bd1 100644 --- a/cmd/cobra.go +++ b/cmd/cobra.go @@ -104,7 +104,7 @@ func init() { rootCmd.SetHelpTemplate(rootCmd.HelpTemplate() + "\n" + fullDocsFooter + "\n") } -func caddyCmdToCoral(caddyCmd Command) *cobra.Command { +func caddyCmdToCobra(caddyCmd Command) *cobra.Command { cmd := &cobra.Command{ Use: caddyCmd.Name, Short: caddyCmd.Short, diff --git a/cmd/commands.go b/cmd/commands.go index c92e1269..83d3c99a 100644 --- a/cmd/commands.go +++ b/cmd/commands.go @@ -504,7 +504,7 @@ func RegisterCommand(cmd Command) { if !commandNameRegex.MatchString(cmd.Name) { panic("invalid command name") } - rootCmd.AddCommand(caddyCmdToCoral(cmd)) + rootCmd.AddCommand(caddyCmdToCobra(cmd)) } var commandNameRegex = regexp.MustCompile(`^[a-z0-9]$|^([a-z0-9]+-?[a-z0-9]*)+[a-z0-9]$`)