From 5a8c6498bb289ce7859fc17803a5a54bc22646c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Fri, 20 Jul 2018 15:47:06 +0200 Subject: [PATCH] generate manpages --- doc/gen_manpage.go | 29 ++++++++++++++++++++++++++ doc/man/git-bug-close.3 | 34 ++++++++++++++++++++++++++++++ doc/man/git-bug-commands.3 | 38 ++++++++++++++++++++++++++++++++++ doc/man/git-bug-comment.3 | 42 ++++++++++++++++++++++++++++++++++++++ doc/man/git-bug-label.3 | 38 ++++++++++++++++++++++++++++++++++ doc/man/git-bug-ls.3 | 34 ++++++++++++++++++++++++++++++ doc/man/git-bug-new.3 | 42 ++++++++++++++++++++++++++++++++++++++ doc/man/git-bug-open.3 | 34 ++++++++++++++++++++++++++++++ doc/man/git-bug-pull.3 | 34 ++++++++++++++++++++++++++++++ doc/man/git-bug-push.3 | 34 ++++++++++++++++++++++++++++++ doc/man/git-bug-show.3 | 34 ++++++++++++++++++++++++++++++ doc/man/git-bug-webui.3 | 34 ++++++++++++++++++++++++++++++ doc/man/git-bug.3 | 37 +++++++++++++++++++++++++++++++++ git-bug.go | 1 + 14 files changed, 465 insertions(+) create mode 100644 doc/gen_manpage.go create mode 100644 doc/man/git-bug-close.3 create mode 100644 doc/man/git-bug-commands.3 create mode 100644 doc/man/git-bug-comment.3 create mode 100644 doc/man/git-bug-label.3 create mode 100644 doc/man/git-bug-ls.3 create mode 100644 doc/man/git-bug-new.3 create mode 100644 doc/man/git-bug-open.3 create mode 100644 doc/man/git-bug-pull.3 create mode 100644 doc/man/git-bug-push.3 create mode 100644 doc/man/git-bug-show.3 create mode 100644 doc/man/git-bug-webui.3 create mode 100644 doc/man/git-bug.3 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 [