mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 03:30:01 +08:00
change: relocate plugin templates
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"project_name": "demo-empty-project",
|
"project_name": "demo-empty-project",
|
||||||
"project_path": "/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/examples/demo-empty-project",
|
"project_path": "/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/examples/demo-empty-project",
|
||||||
"create_time": "2022-05-29T11:29:24.797507+08:00",
|
"create_time": "2022-05-29T13:24:31.960615+08:00",
|
||||||
"hrp_version": "v4.1.0"
|
"hrp_version": "v4.1.0"
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"project_name": "demo-with-go-plugin",
|
"project_name": "demo-with-go-plugin",
|
||||||
"project_path": "/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/examples/demo-with-go-plugin",
|
"project_path": "/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/examples/demo-with-go-plugin",
|
||||||
"create_time": "2022-05-29T11:29:23.237043+08:00",
|
"create_time": "2022-05-29T13:24:29.431434+08:00",
|
||||||
"hrp_version": "v4.1.0"
|
"hrp_version": "v4.1.0"
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"project_name": "demo-with-py-plugin",
|
"project_name": "demo-with-py-plugin",
|
||||||
"project_path": "/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/examples/demo-with-py-plugin",
|
"project_path": "/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/examples/demo-with-py-plugin",
|
||||||
"create_time": "2022-05-29T11:29:23.370656+08:00",
|
"create_time": "2022-05-29T13:24:29.566414+08:00",
|
||||||
"hrp_version": "v4.1.0"
|
"hrp_version": "v4.1.0"
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"project_name": "demo-without-plugin",
|
"project_name": "demo-without-plugin",
|
||||||
"project_path": "/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/examples/demo-without-plugin",
|
"project_path": "/Users/debugtalk/MyProjects/HttpRunner-dev/httprunner/examples/demo-without-plugin",
|
||||||
"create_time": "2022-05-29T11:29:24.659348+08:00",
|
"create_time": "2022-05-29T13:24:31.840718+08:00",
|
||||||
"hrp_version": "v4.1.0"
|
"hrp_version": "v4.1.0"
|
||||||
}
|
}
|
||||||
+2
-2
@@ -30,10 +30,10 @@ const (
|
|||||||
regexGoFunctionContent = `func [\s\S]*?\n}`
|
regexGoFunctionContent = `func [\s\S]*?\n}`
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed internal/scaffold/templates/build/debugtalkPythonTemplate
|
//go:embed internal/scaffold/templates/plugin/debugtalkPythonTemplate
|
||||||
var pyTemplate string
|
var pyTemplate string
|
||||||
|
|
||||||
//go:embed internal/scaffold/templates/build/debugtalkGoTemplate
|
//go:embed internal/scaffold/templates/plugin/debugtalkGoTemplate
|
||||||
var goTemplate string
|
var goTemplate string
|
||||||
|
|
||||||
type TemplateContent struct {
|
type TemplateContent struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user