@@ -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.
@@ -646,8 +644,7 @@ You will need to start a new shell for this setup to take effect.
646
644
zsh := & Command {
647
645
Use : "zsh" ,
648
646
Short : fmt .Sprintf (shortDesc , "zsh" ),
649
- Long : fmt .Sprintf (`
650
- Generate the autocompletion script for the zsh shell.
647
+ Long : fmt .Sprintf (`Generate the autocompletion script for the zsh shell.
651
648
652
649
If shell completion is not already enabled in your environment you will need
653
650
to enable it. You can execute the following once:
@@ -678,8 +675,7 @@ You will need to start a new shell for this setup to take effect.
678
675
fish := & Command {
679
676
Use : "fish" ,
680
677
Short : fmt .Sprintf (shortDesc , "fish" ),
681
- Long : fmt .Sprintf (`
682
- Generate the autocompletion script for the fish shell.
678
+ Long : fmt .Sprintf (`Generate the autocompletion script for the fish shell.
683
679
684
680
To load completions in your current shell session:
685
681
$ %[1]s completion fish | source
@@ -702,8 +698,7 @@ You will need to start a new shell for this setup to take effect.
702
698
powershell := & Command {
703
699
Use : "powershell" ,
704
700
Short : fmt .Sprintf (shortDesc , "powershell" ),
705
- Long : fmt .Sprintf (`
706
- Generate the autocompletion script for powershell.
701
+ Long : fmt .Sprintf (`Generate the autocompletion script for powershell.
707
702
708
703
To load completions in your current shell session:
709
704
PS C:\> %[1]s completion powershell | Out-String | Invoke-Expression
0 commit comments