aboutsummaryrefslogblamecommitdiffstats
path: root/doc/gen_markdown.go
blob: ee87d54460438804820619c7e841e1f9ebf1367b (plain) (tree)























                                                              
// +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)
	}
}