diff options
Diffstat (limited to 'doc/gen_manpage.go')
-rw-r--r-- | doc/gen_manpage.go | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/gen_manpage.go b/doc/gen_manpage.go new file mode 100644 index 00000000..e5a38b3a --- /dev/null +++ b/doc/gen_manpage.go @@ -0,0 +1,29 @@ +// +build ignore + +package main + +import ( + "fmt" + "github.com/MichaelMure/git-bug/commands" + "github.com/spf13/cobra/doc" + "log" + "os" + "path" +) + +func main() { + cwd, _ := os.Getwd() + filepath := path.Join(cwd, "doc", "man") + + header := &doc.GenManHeader{ + Title: "MINE", + Section: "3", + } + + fmt.Println("Generating manpage ...") + + err := doc.GenManTree(commands.RootCmd, header, filepath) + if err != nil { + log.Fatal(err) + } +} |