diff options
author | Y.Horie <u5.horie@gmail.com> | 2023-01-22 00:27:58 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-21 10:27:58 -0500 |
commit | 8d6870fd068aa3ea472a46f34d219f41703e2ddb (patch) | |
tree | c25b8490a7498f060c4ad81b518a6906c225fb39 | |
parent | c38a040e85a7d277299acaab39bdad171bc45675 (diff) |
chore: Fix typo, coral -> cobra (#5325)
-rw-r--r-- | cmd/cobra.go | 2 | ||||
-rw-r--r-- | cmd/commands.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/cobra.go b/cmd/cobra.go index 8da99ae..203b7bd 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 c92e126..83d3c99 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]$`) |