mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-19 23:30:09 +08:00
feat: add build command for plugin
This commit is contained in:
15
hrp/internal/build/templates/debugtalkPythonTemplate
Normal file
15
hrp/internal/build/templates/debugtalkPythonTemplate
Normal file
@@ -0,0 +1,15 @@
|
||||
{{- range $import := .Imports }}
|
||||
{{- $import}}
|
||||
{{ end }}
|
||||
{{ range $fromImport := .FromImports }}
|
||||
{{- $fromImport}}
|
||||
{{ end }}
|
||||
{{ range $function := .Functions }}
|
||||
{{ $function }}
|
||||
|
||||
{{ end }}
|
||||
if __name__ == "__main__":
|
||||
{{- range $mainRegSnake := .FunctionSnakeNames }}
|
||||
funppy.register("{{ $mainRegSnake }}", {{ $mainRegSnake }})
|
||||
{{- end }}
|
||||
funppy.serve()
|
||||
Reference in New Issue
Block a user