feat: gen plugin file with hrp version

This commit is contained in:
debugtalk
2022-05-28 09:40:49 +08:00
parent cbdc7464c6
commit 52ce77efa8
3 changed files with 16 additions and 7 deletions

View File

@@ -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 }})