mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Enable shell completion descriptions for bash
Cobra provides support for completion descriptions for bash. It was turned off because of a bug with certain bash menu options which have been fixed by Cobra 1.3.0. Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com>
This commit is contained in:
parent
b1e348f60d
commit
d72926d491
@ -167,7 +167,7 @@ func runCompletionBash(out io.Writer, boilerPlate string, kubectl *cobra.Command
|
||||
return err
|
||||
}
|
||||
|
||||
return kubectl.GenBashCompletionV2(out, false) // TODO: Upgrade to Cobra 1.3.0 or later before including descriptions (See https://github.com/spf13/cobra/pull/1509)
|
||||
return kubectl.GenBashCompletionV2(out, true)
|
||||
}
|
||||
|
||||
func runCompletionZsh(out io.Writer, boilerPlate string, kubectl *cobra.Command) error {
|
||||
|
Loading…
Reference in New Issue
Block a user