mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-24 07:45:15 +00:00
20 lines
343 B
Go
20 lines
343 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/c9s/bbgo/pkg/cmd"
|
|
"github.com/spf13/cobra/doc"
|
|
"log"
|
|
"path"
|
|
"runtime"
|
|
)
|
|
|
|
func main() {
|
|
_, b, _, _ := runtime.Caller(0)
|
|
root := path.Join(path.Dir(path.Dir(path.Dir(b))), "doc", "commands")
|
|
fmt.Println(root)
|
|
if err := doc.GenMarkdownTree(cmd.RootCmd, root); err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|