mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 18:23:08 +03:00
25 lines
373 B
Go
25 lines
373 B
Go
|
// +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)
|
||
|
}
|
||
|
}
|