aboutsummaryrefslogtreecommitdiffstats
path: root/doc/gen_docs.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-06-28 18:26:29 +0200
committerMichael Muré <batolettre@gmail.com>2020-06-28 18:26:29 +0200
commit26bd1dd11010b4d86cebe2510ad7085a6b316334 (patch)
treef1fe939311c75bd615071e96f3d37822cccd77a7 /doc/gen_docs.go
parentc0dbc149d5c0c3610476ba14a800c9ba803a2c2c (diff)
downloadgit-bug-26bd1dd11010b4d86cebe2510ad7085a6b316334.tar.gz
commands: refactor to avoid globals
Diffstat (limited to 'doc/gen_docs.go')
-rw-r--r--doc/gen_docs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/gen_docs.go b/doc/gen_docs.go
index 31960b65..83997488 100644
--- a/doc/gen_docs.go
+++ b/doc/gen_docs.go
@@ -62,7 +62,7 @@ func genManPage() error {
}
}
- return doc.GenManTree(commands.RootCmd, header, dir)
+ return doc.GenManTree(commands.NewRootCommand(), header, dir)
}
func genMarkdown() error {
@@ -79,5 +79,5 @@ func genMarkdown() error {
}
}
- return doc.GenMarkdownTree(commands.RootCmd, dir)
+ return doc.GenMarkdownTree(commands.NewRootCommand(), dir)
}