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

View File

@@ -13,7 +13,7 @@ import (
"github.com/httprunner/httprunner/v5/internal/sdk"
)
var pytestCmd = &cobra.Command{
var CmdPytest = &cobra.Command{
Use: "pytest $path ...",
Short: "run API test with pytest",
Args: cobra.MinimumNArgs(1),
@@ -38,10 +38,6 @@ var pytestCmd = &cobra.Command{
},
}
func init() {
rootCmd.AddCommand(pytestCmd)
}
func runPytest(args []string) error {
args = append([]string{"run"}, args...)
return myexec.ExecPython3Command("httprunner", args...)