diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-20 15:46:14 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-20 15:46:14 +0200 |
commit | e89f87624f27b7b98efc959bd96e260ac86f9236 (patch) | |
tree | 6561a1c1eb1660736c48d668f43ccaf67cce19a2 /doc/gen_markdown.go | |
parent | 1dd5118eebe0e993d55ae5433cb2dcfd2764bf4f (diff) | |
download | git-bug-e89f87624f27b7b98efc959bd96e260ac86f9236.tar.gz |
generate markdown documentation
Diffstat (limited to 'doc/gen_markdown.go')
-rw-r--r-- | doc/gen_markdown.go | 24 |
1 files changed, 24 insertions, 0 deletions
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) + } +} |