docs: update hrp cmd docs

This commit is contained in:
lilong.129
2025-04-24 22:31:03 +08:00
parent 9473345ec9
commit 03c0d6ee42
47 changed files with 587 additions and 117 deletions

16
cmd/cli/doc_test.go Normal file
View File

@@ -0,0 +1,16 @@
package main
import (
"testing"
"github.com/httprunner/httprunner/v5/cmd"
"github.com/spf13/cobra/doc"
"github.com/stretchr/testify/assert"
)
// run this test to generate markdown docs for hrp command
func TestGenMarkdownTree(t *testing.T) {
addAllCommands()
err := doc.GenMarkdownTree(cmd.RootCmd, "../../docs/cmd")
assert.Nil(t, err)
}