mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 05:38:04 +00:00
Generate v2 bash completions
https://github.com/spf13/cobra/blob/main/site/content/completions/_index.md#bash-completion-v2
This commit is contained in:
parent
aaef27147f
commit
a69c1b5230
@ -47,7 +47,7 @@ $ yq shell-completion fish > ~/.config/fish/completions/yq.fish
|
|||||||
var err error = nil
|
var err error = nil
|
||||||
switch args[0] {
|
switch args[0] {
|
||||||
case "bash":
|
case "bash":
|
||||||
err = cmd.Root().GenBashCompletion(os.Stdout)
|
err = cmd.Root().GenBashCompletionV2(os.Stdout, true)
|
||||||
case "zsh":
|
case "zsh":
|
||||||
err = cmd.Root().GenZshCompletion(os.Stdout)
|
err = cmd.Root().GenZshCompletion(os.Stdout)
|
||||||
case "fish":
|
case "fish":
|
||||||
|
Loading…
Reference in New Issue
Block a user