diff --git a/doc/gen_manpage.go b/doc/gen_manpage.go new file mode 100644 index 0000000000000000000000000000000000000000..e5a38b3ae81db0bed3a2bb4a7e97adfb239f7ed2 --- /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) + } +} diff --git a/doc/man/git-bug-close.3 b/doc/man/git-bug-close.3 new file mode 100644 index 0000000000000000000000000000000000000000..1e5d917713d64f04d2fed1b87eeda721144c4a0e --- /dev/null +++ b/doc/man/git-bug-close.3 @@ -0,0 +1,34 @@ +.TH "MINE" "3" "Jul 2018" "Auto generated by spf13/cobra" "" +.nh +.ad l + + +.SH NAME +.PP +git\-bug\-close \- Mark the bug as closed + + +.SH SYNOPSIS +.PP +\fBgit\-bug close [flags]\fP + + +.SH DESCRIPTION +.PP +Mark the bug as closed + + +.SH OPTIONS +.PP +\fB\-h\fP, \fB\-\-help\fP[=false] + help for close + + +.SH SEE ALSO +.PP +\fBgit\-bug(3)\fP + + +.SH HISTORY +.PP +20\-Jul\-2018 Auto generated by spf13/cobra diff --git a/doc/man/git-bug-commands.3 b/doc/man/git-bug-commands.3 new file mode 100644 index 0000000000000000000000000000000000000000..c040f1e0c2f35d0429c06b7e148322e252457024 --- /dev/null +++ b/doc/man/git-bug-commands.3 @@ -0,0 +1,38 @@ +.TH "MINE" "3" "Jul 2018" "Auto generated by spf13/cobra" "" +.nh +.ad l + + +.SH NAME +.PP +git\-bug\-commands \- Display available commands + + +.SH SYNOPSIS +.PP +\fBgit\-bug commands [