From a69c1b52304ec059089e262970b376f8184a66df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 20 Dec 2023 09:33:51 +0200 Subject: [PATCH] Generate v2 bash completions https://github.com/spf13/cobra/blob/main/site/content/completions/_index.md#bash-completion-v2 --- cmd/shell-completion.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/shell-completion.go b/cmd/shell-completion.go index 5431abe0..ea031f89 100644 --- a/cmd/shell-completion.go +++ b/cmd/shell-completion.go @@ -47,7 +47,7 @@ $ yq shell-completion fish > ~/.config/fish/completions/yq.fish var err error = nil switch args[0] { case "bash": - err = cmd.Root().GenBashCompletion(os.Stdout) + err = cmd.Root().GenBashCompletionV2(os.Stdout, true) case "zsh": err = cmd.Root().GenZshCompletion(os.Stdout) case "fish":