git-bug/doc/gen_markdown.go

25 lines
373 B
Go
Raw Normal View History

2018-07-20 16:46:14 +03:00
// +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)
}
}