mirror of
https://github.com/spf13/cobra
synced 2025-05-05 12:57:22 +00:00
Capitalize first letter of default completion
command short description
... to make it more consistent with other options ... such as the default `help` one ... or ones from the most popular cobra users
This commit is contained in:
parent
9e1d6f1c2a
commit
ad11199cda
1 changed files with 2 additions and 2 deletions
|
@ -599,7 +599,7 @@ func (c *Command) initDefaultCompletionCmd() {
|
||||||
|
|
||||||
completionCmd := &Command{
|
completionCmd := &Command{
|
||||||
Use: compCmdName,
|
Use: compCmdName,
|
||||||
Short: "generate the autocompletion script for the specified shell",
|
Short: "Generate the autocompletion script for the specified shell",
|
||||||
Long: fmt.Sprintf(`
|
Long: fmt.Sprintf(`
|
||||||
Generate the autocompletion script for %[1]s for the specified shell.
|
Generate the autocompletion script for %[1]s for the specified shell.
|
||||||
See each sub-command's help for details on how to use the generated script.
|
See each sub-command's help for details on how to use the generated script.
|
||||||
|
@ -611,7 +611,7 @@ See each sub-command's help for details on how to use the generated script.
|
||||||
|
|
||||||
out := c.OutOrStdout()
|
out := c.OutOrStdout()
|
||||||
noDesc := c.CompletionOptions.DisableDescriptions
|
noDesc := c.CompletionOptions.DisableDescriptions
|
||||||
shortDesc := "generate the autocompletion script for %s"
|
shortDesc := "Generate the autocompletion script for %s"
|
||||||
bash := &Command{
|
bash := &Command{
|
||||||
Use: "bash",
|
Use: "bash",
|
||||||
Short: fmt.Sprintf(shortDesc, "bash"),
|
Short: fmt.Sprintf(shortDesc, "bash"),
|
||||||
|
|
Loading…
Add table
Reference in a new issue