From 26bd1dd11010b4d86cebe2510ad7085a6b316334 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 28 Jun 2020 18:26:29 +0200 Subject: commands: refactor to avoid globals --- doc/gen_docs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/gen_docs.go') 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) } -- cgit