From e89f87624f27b7b98efc959bd96e260ac86f9236 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Fri, 20 Jul 2018 15:46:14 +0200 Subject: generate markdown documentation --- doc/gen_markdown.go | 24 ++++++++++++++++++++++++ doc/md/git-bug.md | 35 +++++++++++++++++++++++++++++++++++ doc/md/git-bug_close.md | 23 +++++++++++++++++++++++ doc/md/git-bug_commands.md | 24 ++++++++++++++++++++++++ doc/md/git-bug_comment.md | 25 +++++++++++++++++++++++++ doc/md/git-bug_label.md | 24 ++++++++++++++++++++++++ doc/md/git-bug_ls.md | 23 +++++++++++++++++++++++ doc/md/git-bug_new.md | 25 +++++++++++++++++++++++++ doc/md/git-bug_open.md | 23 +++++++++++++++++++++++ doc/md/git-bug_pull.md | 23 +++++++++++++++++++++++ doc/md/git-bug_push.md | 23 +++++++++++++++++++++++ doc/md/git-bug_show.md | 23 +++++++++++++++++++++++ doc/md/git-bug_webui.md | 23 +++++++++++++++++++++++ 13 files changed, 318 insertions(+) create mode 100644 doc/gen_markdown.go create mode 100644 doc/md/git-bug.md create mode 100644 doc/md/git-bug_close.md create mode 100644 doc/md/git-bug_commands.md create mode 100644 doc/md/git-bug_comment.md create mode 100644 doc/md/git-bug_label.md create mode 100644 doc/md/git-bug_ls.md create mode 100644 doc/md/git-bug_new.md create mode 100644 doc/md/git-bug_open.md create mode 100644 doc/md/git-bug_pull.md create mode 100644 doc/md/git-bug_push.md create mode 100644 doc/md/git-bug_show.md create mode 100644 doc/md/git-bug_webui.md (limited to 'doc') diff --git a/doc/gen_markdown.go b/doc/gen_markdown.go new file mode 100644 index 00000000..ee87d544 --- /dev/null +++ b/doc/gen_markdown.go @@ -0,0 +1,24 @@ +// +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", "md") + + fmt.Println("Generating Markdown documentation ...") + + err := doc.GenMarkdownTree(commands.RootCmd, filepath) + if err != nil { + log.Fatal(err) + } +} diff --git a/doc/md/git-bug.md b/doc/md/git-bug.md new file mode 100644 index 00000000..b6800a55 --- /dev/null +++ b/doc/md/git-bug.md @@ -0,0 +1,35 @@ +## git-bug + +A bugtracker embedded in Git + +### Synopsis + +git-bug is a bugtracker embedded in git. + +It use the same internal storage so it doesn't pollute your project. As you would do with commits and branches, you can push your bugs to the same git remote your are already using to collaborate with other peoples. + +``` +git-bug [flags] +``` + +### Options + +``` + -h, --help help for git-bug +``` + +### SEE ALSO + +* [git-bug close](git-bug_close.md) - Mark the bug as closed +* [git-bug commands](git-bug_commands.md) - Display available commands +* [git-bug comment](git-bug_comment.md) - Add a new comment to a bug +* [git-bug label](git-bug_label.md) - Manipulate bug's label +* [git-bug ls](git-bug_ls.md) - Display a summary of all bugs +* [git-bug new](git-bug_new.md) - Create a new bug +* [git-bug open](git-bug_open.md) - Mark the bug as open +* [git-bug pull](git-bug_pull.md) - Pull bugs update from a git remote +* [git-bug push](git-bug_push.md) - Push bugs update to a git remote +* [git-bug show](git-bug_show.md) - Display the details of a bug +* [git-bug webui](git-bug_webui.md) - Launch the web UI + +###### Auto generated by spf13/cobra on 20-Jul-2018 diff --git a/doc/md/git-bug_close.md b/doc/md/git-bug_close.md new file mode 100644 index 00000000..89aa22c7 --- /dev/null +++ b/doc/md/git-bug_close.md @@ -0,0 +1,23 @@ +## git-bug close + +Mark the bug as closed + +### Synopsis + +Mark the bug as closed + +``` +git-bug close [flags] +``` + +### Options + +``` + -h, --help help for close +``` + +### SEE ALSO + +* [git-bug](git-bug.md) - A bugtracker embedded in Git + +###### Auto generated by spf13/cobra on 20-Jul-2018 diff --git a/doc/md/git-bug_commands.md b/doc/md/git-bug_commands.md new file mode 100644 index 00000000..83a03b79 --- /dev/null +++ b/doc/md/git-bug_commands.md @@ -0,0 +1,24 @@ +## git-bug commands + +Display available commands + +### Synopsis + +Display available commands + +``` +git-bug commands [