blob: e5a38b3ae81db0bed3a2bb4a7e97adfb239f7ed2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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)
}
}
|