From 7f87eb8602b76acbf3acc91391249d0e76424db6 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 27 Sep 2020 21:30:50 +0200 Subject: doc: generate concurrently --- misc/gen_completion.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'misc/gen_completion.go') 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) -- cgit