@@ -599,9 +599,8 @@ func (c *Command) initDefaultCompletionCmd() {
599
599
600
600
completionCmd := & Command {
601
601
Use : compCmdName ,
602
- Short : "generate the autocompletion script for the specified shell" ,
603
- Long : fmt .Sprintf (`
604
- Generate the autocompletion script for %[1]s for the specified shell.
602
+ Short : "Generate the autocompletion script for the specified shell" ,
603
+ Long : fmt .Sprintf (`Generate the autocompletion script for %[1]s for the specified shell.
605
604
See each sub-command's help for details on how to use the generated script.
606
605
` , c .Root ().Name ()),
607
606
Args : NoArgs ,
@@ -611,12 +610,11 @@ See each sub-command's help for details on how to use the generated script.
611
610
612
611
out := c .OutOrStdout ()
613
612
noDesc := c .CompletionOptions .DisableDescriptions
614
- shortDesc := "generate the autocompletion script for %s"
613
+ shortDesc := "Generate the autocompletion script for %s"
615
614
bash := & Command {
616
615
Use : "bash" ,
617
616
Short : fmt .Sprintf (shortDesc , "bash" ),
618
- Long : fmt .Sprintf (`
619
- Generate the autocompletion script for the bash shell.
617
+ Long : fmt .Sprintf (`Generate the autocompletion script for the bash shell.
620
618
621
619
This script depends on the 'bash-completion' package.
622
620
If it is not installed already, you can install it via your OS's package manager.
@@ -651,8 +649,7 @@ You will need to start a new shell for this setup to take effect.
651
649
zsh := & Command {
652
650
Use : "zsh" ,
653
651
Short : fmt .Sprintf (shortDesc , "zsh" ),
654
- Long : fmt .Sprintf (`
655
- Generate the autocompletion script for the zsh shell.
652
+ Long : fmt .Sprintf (`Generate the autocompletion script for the zsh shell.
656
653
657
654
If shell completion is not already enabled in your environment you will need
658
655
to enable it. You can execute the following once:
@@ -687,8 +684,7 @@ You will need to start a new shell for this setup to take effect.
687
684
fish := & Command {
688
685
Use : "fish" ,
689
686
Short : fmt .Sprintf (shortDesc , "fish" ),
690
- Long : fmt .Sprintf (`
691
- Generate the autocompletion script for the fish shell.
687
+ Long : fmt .Sprintf (`Generate the autocompletion script for the fish shell.
692
688
693
689
To load completions in your current shell session:
694
690
@@ -713,8 +709,7 @@ You will need to start a new shell for this setup to take effect.
713
709
powershell := & Command {
714
710
Use : "powershell" ,
715
711
Short : fmt .Sprintf (shortDesc , "powershell" ),
716
- Long : fmt .Sprintf (`
717
- Generate the autocompletion script for powershell.
712
+ Long : fmt .Sprintf (`Generate the autocompletion script for powershell.
718
713
719
714
To load completions in your current shell session:
720
715
0 commit comments