mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
feat: gen plugin file with hrp version
This commit is contained in:
@@ -9,8 +9,9 @@ import (
|
||||
{{ range $function := .Functions }}
|
||||
{{ $function }}
|
||||
{{ end }}
|
||||
|
||||
func main() {
|
||||
{{- range $idx, $functionName := .FunctionNames }}
|
||||
{{- range $functionName := .FunctionNames }}
|
||||
fungo.Register("{{ $functionName }}", {{ $functionName }})
|
||||
{{- end }}
|
||||
fungo.Serve()
|
||||
|
||||
@@ -1,13 +1,16 @@
|
||||
{{- range $import := .Imports }}
|
||||
# NOTE: Generated By hrp {{ .Version }}, DO NOT EDIT!
|
||||
|
||||
{{ range $import := .Imports }}
|
||||
{{- $import}}
|
||||
{{ end }}
|
||||
{{ range $fromImport := .FromImports }}
|
||||
{{- $fromImport}}
|
||||
{{ end }}
|
||||
{{ range $function := .Functions }}
|
||||
{{ $function }}
|
||||
|
||||
{{ range $function := .Functions }}
|
||||
{{- $function }}
|
||||
{{ end }}
|
||||
|
||||
if __name__ == "__main__":
|
||||
{{- range $functionName := .FunctionNames }}
|
||||
funppy.register("{{ $functionName }}", {{ $functionName }})
|
||||
|
||||
Reference in New Issue
Block a user