diff options
author | Michael Muré <batolettre@gmail.com> | 2020-09-27 21:30:50 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-09-27 21:30:50 +0200 |
commit | 7f87eb8602b76acbf3acc91391249d0e76424db6 (patch) | |
tree | e473838db617dd8f1caed7271cb418dbcabbd652 /misc | |
parent | 148b335dd345347af24487d6130bc713a6387bdc (diff) | |
download | git-bug-7f87eb8602b76acbf3acc91391249d0e76424db6.tar.gz |
doc: generate concurrently
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) |