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

fix completion #3355

Merged
merged 1 commit into from
Nov 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
}