aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-09-27 21:30:50 +0200
committerMichael Muré <batolettre@gmail.com>2020-09-27 21:30:50 +0200
commit7f87eb8602b76acbf3acc91391249d0e76424db6 (patch)
treee473838db617dd8f1caed7271cb418dbcabbd652 /misc
parent148b335dd345347af24487d6130bc713a6387bdc (diff)
downloadgit-bug-7f87eb8602b76acbf3acc91391249d0e76424db6.tar.gz
doc: generate concurrently
Diffstat (limited to 'misc')
-rw-r--r--misc/gen_completion.go3
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)