codegen: Refactor core jennies for reusability, add version-picking metajennies (#58995)

* Add each-major jenny, refactor TS jenny for it

* Introduce LatestJenny, refactor GoTypesJenny for it
This commit is contained in:
sam boyer
2022-11-22 15:00:29 +01:00
committed by GitHub
parent 4eed56193f
commit 42baad837a
12 changed files with 206 additions and 173 deletions
+7
View File
@@ -5,6 +5,8 @@ import (
"embed"
"text/template"
"time"
"github.com/grafana/codejen"
)
// All the parsed templates in the tmpl subdirectory
@@ -29,6 +31,11 @@ type (
LineageCUEPath string
GenLicense bool
}
tvars_gen_header struct {
MainGenerator string
Using []codejen.NamedJenny
From string
}
tvars_kind_registry struct {
// Header tvars_autogen_header
NumRaw, NumStructured int