mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-19 03:29:30 +08:00
feat: gen markdown docs for command
This commit is contained in:
18
docs/doc_test.go
Normal file
18
docs/doc_test.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"log"
|
||||
"testing"
|
||||
|
||||
"github.com/spf13/cobra/doc"
|
||||
|
||||
"github.com/httprunner/httpboomer/httpboomer/cmd"
|
||||
)
|
||||
|
||||
// run this test to generate markdown docs
|
||||
func TestGenMarkdownTree(t *testing.T) {
|
||||
err := doc.GenMarkdownTree(cmd.RootCmd, "./cmd/")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user