You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`zsh`, `fish` and `powershell` allow for descriptions to annotate completion choices. For commands and flags, Cobra will provide the descriptions automatically, based on usage information. For example, using zsh:
355
+
Cobra provides support for completion descriptions. Such descriptions are supported for each shell
356
+
(however, for bash, it is only available in the [completion V2 version](#bash-completion-v2)).
357
+
For commands and flags, Cobra will provide the descriptions automatically, based on usage information.
358
+
For example, using zsh:
356
359
```
357
360
$ helm s[tab]
358
361
search -- search for a keyword in charts
@@ -365,7 +368,7 @@ $ helm s[tab]
365
368
search (search for a keyword in charts) show (show information of a chart) status (displays the status of the named release)
366
369
```
367
370
368
-
Cobra allows you to add annotations to your own completions. Simply add the annotation text after each completion, following a `\t` separator. This technique applies to completions returned by `ValidArgs`, `ValidArgsFunction` and `RegisterFlagCompletionFunc()`. For example:
371
+
Cobra allows you to add descriptions to your own completions. Simply add the description text after each completion, following a `\t` separator. This technique applies to completions returned by `ValidArgs`, `ValidArgsFunction` and `RegisterFlagCompletionFunc()`. For example:
0 commit comments