From 51ef0636fb95e5633ecb90e4b8452d10552827bd Mon Sep 17 00:00:00 2001 From: debugtalk Date: Sun, 29 May 2022 13:28:48 +0800 Subject: [PATCH] change: relocate plugin templates --- examples/demo-empty-project/proj.json | 2 +- examples/demo-with-go-plugin/proj.json | 2 +- examples/demo-with-py-plugin/proj.json | 2 +- examples/demo-without-plugin/proj.json | 2 +- hrp/build.go | 4 ++-- .../scaffold/templates/{build => plugin}/debugtalkGoTemplate | 0 .../templates/{build => plugin}/debugtalkPythonTemplate | 0 7 files changed, 6 insertions(+), 6 deletions(-) rename hrp/internal/scaffold/templates/{build => plugin}/debugtalkGoTemplate (100%) rename hrp/internal/scaffold/templates/{build => plugin}/debugtalkPythonTemplate (100%) diff --git a/examples/demo-empty-project/proj.json b/examples/demo-empty-project/proj.json index 8a7e8095..38a8dbce 100644 --- a/examples/demo-empty-project/proj.json +++ b/examples/demo-empty-project/proj.json @@ -1,6 +1,6 @@ { "project_name": "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" } \ No newline at end of file diff --git a/examples/demo-with-go-plugin/proj.json b/examples/demo-with-go-plugin/proj.json index a707307e..ea8c1534 100644 --- a/examples/demo-with-go-plugin/proj.json +++ b/examples/demo-with-go-plugin/proj.json @@ -1,6 +1,6 @@ { "project_name": "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" } \ No newline at end of file diff --git a/examples/demo-with-py-plugin/proj.json b/examples/demo-with-py-plugin/proj.json index 3a8afa50..847d146d 100644 --- a/examples/demo-with-py-plugin/proj.json +++ b/examples/demo-with-py-plugin/proj.json @@ -1,6 +1,6 @@ { "project_name": "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" } \ No newline at end of file diff --git a/examples/demo-without-plugin/proj.json b/examples/demo-without-plugin/proj.json index 8e3725e4..bd9b8d79 100644 --- a/examples/demo-without-plugin/proj.json +++ b/examples/demo-without-plugin/proj.json @@ -1,6 +1,6 @@ { "project_name": "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" } \ No newline at end of file diff --git a/hrp/build.go b/hrp/build.go index 4c082e74..d77c6b3c 100644 --- a/hrp/build.go +++ b/hrp/build.go @@ -30,10 +30,10 @@ const ( regexGoFunctionContent = `func [\s\S]*?\n}` ) -//go:embed internal/scaffold/templates/build/debugtalkPythonTemplate +//go:embed internal/scaffold/templates/plugin/debugtalkPythonTemplate var pyTemplate string -//go:embed internal/scaffold/templates/build/debugtalkGoTemplate +//go:embed internal/scaffold/templates/plugin/debugtalkGoTemplate var goTemplate string type TemplateContent struct { diff --git a/hrp/internal/scaffold/templates/build/debugtalkGoTemplate b/hrp/internal/scaffold/templates/plugin/debugtalkGoTemplate similarity index 100% rename from hrp/internal/scaffold/templates/build/debugtalkGoTemplate rename to hrp/internal/scaffold/templates/plugin/debugtalkGoTemplate diff --git a/hrp/internal/scaffold/templates/build/debugtalkPythonTemplate b/hrp/internal/scaffold/templates/plugin/debugtalkPythonTemplate similarity index 100% rename from hrp/internal/scaffold/templates/build/debugtalkPythonTemplate rename to hrp/internal/scaffold/templates/plugin/debugtalkPythonTemplate