File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -589,7 +589,7 @@ func (c *Command) initDefaultCompletionCmd() {
589
589
590
590
completionCmd := & Command {
591
591
Use : compCmdName ,
592
- Short : "generate the autocompletion script for the specified shell" ,
592
+ Short : "Generate the autocompletion script for the specified shell" ,
593
593
Long : fmt .Sprintf (`
594
594
Generate the autocompletion script for %[1]s for the specified shell.
595
595
See each sub-command's help for details on how to use the generated script.
@@ -601,7 +601,7 @@ See each sub-command's help for details on how to use the generated script.
601
601
602
602
out := c .OutOrStdout ()
603
603
noDesc := c .CompletionOptions .DisableDescriptions
604
- shortDesc := "generate the autocompletion script for %s"
604
+ shortDesc := "Generate the autocompletion script for %s"
605
605
bash := & Command {
606
606
Use : "bash" ,
607
607
Short : fmt .Sprintf (shortDesc , "bash" ),
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ func TestCmdNameCompletionInGo(t *testing.T) {
125
125
126
126
expected = strings .Join ([]string {
127
127
"aliased\t A command with aliases" ,
128
- "completion\t generate the autocompletion script for the specified shell" ,
128
+ "completion\t Generate the autocompletion script for the specified shell" ,
129
129
"firstChild\t First command" ,
130
130
"help\t Help about any command" ,
131
131
"secondChild" ,
@@ -580,7 +580,7 @@ func TestFlagNameCompletionInGoWithDesc(t *testing.T) {
580
580
581
581
expected := strings .Join ([]string {
582
582
"childCmd\t first command" ,
583
- "completion\t generate the autocompletion script for the specified shell" ,
583
+ "completion\t Generate the autocompletion script for the specified shell" ,
584
584
"help\t Help about any command" ,
585
585
":4" ,
586
586
"Completion ended with directive: ShellCompDirectiveNoFileComp" , "" }, "\n " )
You can’t perform that action at this time.
0 commit comments