aboutsummaryrefslogblamecommitdiffstats
path: root/doc/gen_manpage.go
blob: 9fd2ea2638edc573774f8712968cd9b69cce3445 (plain) (tree)
1
2
3
4
5
6
7
8
9





                


              


                                                 






                                                

                                   








                                                                 
// +build ignore

package main

import (
	"fmt"
	"log"
	"os"
	"path"

	"github.com/MichaelMure/git-bug/commands"
	"github.com/spf13/cobra/doc"
)

func main() {
	cwd, _ := os.Getwd()
	filepath := path.Join(cwd, "doc", "man")

	header := &doc.GenManHeader{
		Title:   "GIT-BUG",
		Section: "1",
	}

	fmt.Println("Generating manpage ...")

	err := doc.GenManTree(commands.RootCmd, header, filepath)
	if err != nil {
		log.Fatal(err)
	}
}