diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/gen_completion.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/misc/gen_completion.go b/misc/gen_completion.go index 0bc546f7..af00fa64 100644 --- a/misc/gen_completion.go +++ b/misc/gen_completion.go @@ -14,8 +14,6 @@ import ( func main() { fmt.Println("Generating completion files ...") - root := commands.NewRootCommand() - tasks := map[string]func(*cobra.Command) error{ "Bash": genBash, "Fish": genFish, @@ -28,6 +26,7 @@ func main() { wg.Add(1) go func(name string, f func(*cobra.Command) error) { defer wg.Done() + root := commands.NewRootCommand() err := f(root) if err != nil { fmt.Printf(" - %s: %v\n", name, err) |