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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user