Skip to content

Commit

Permalink
chore(completion): use cobra bash completion v2
Browse files Browse the repository at this point in the history
https: //github.com/spf13/cobra/blob/main/shell_completions.md#bash-completion-v2
Signed-off-by: Alexey Igrychev <alexey.igrychev@flant.com>
  • Loading branch information
alexey-igrychev committed Nov 10, 2022
1 parent a71e5df commit 2792565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/werf/completion/completion.go
Expand Up @@ -32,7 +32,7 @@ func NewCmd(ctx context.Context, rootCmd *cobra.Command) *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) error {
switch cmdData.Shell {
case "bash":
return rootCmd.GenBashCompletion(os.Stdout)
return rootCmd.GenBashCompletionV2(os.Stdout, true)
case "zsh":
if err := rootCmd.GenZshCompletion(os.Stdout); err != nil {
return err
Expand Down

0 comments on commit 2792565

Please sign in to comment.