1// +build ignore
 2
 3package main
 4
 5import (
 6	"fmt"
 7	"log"
 8	"os"
 9	"path"
10
11	"github.com/MichaelMure/git-bug/commands"
12	"github.com/spf13/cobra/doc"
13)
14
15func main() {
16	cwd, _ := os.Getwd()
17	filepath := path.Join(cwd, "doc", "man")
18
19	header := &doc.GenManHeader{
20		Title:   "GIT-BUG",
21		Section: "1",
22		Source:  "Generated from git-bug's source code",
23	}
24
25	fmt.Println("Generating manpage ...")
26
27	err := doc.GenManTree(commands.RootCmd, header, filepath)
28	if err != nil {
29		log.Fatal(err)
30	}
31}