Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
fix completion
Browse files Browse the repository at this point in the history
  • Loading branch information
lalyos committed Nov 5, 2020
1 parent 72743f2 commit 4e5f453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/fluxctl/completion_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ func newCompletionCommand() *cobra.Command {
}

func runCompletionBash(out io.Writer, fluxctl *cobra.Command) error {
return fluxctl.GenBashCompletion(out)
return fluxctl.Root().GenBashCompletion(out)
}

func runCompletionZsh(out io.Writer, fluxctl *cobra.Command) error {
return fluxctl.GenZshCompletion(out)
return fluxctl.Root().GenZshCompletion(out)
}

func runCompletionFish(out io.Writer, fluxctl *cobra.Command) error {
return fluxctl.GenFishCompletion(out, true)
return fluxctl.Root().GenFishCompletion(out, true)
}

0 comments on commit 4e5f453

Please sign in to comment.