mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Kindsys: Replace "Declaration" with "Definition" (#62515)
* s/Declaration/Definition/g * s/DeclForGen/DefForGen/g * Rename some local vars
This commit is contained in:
@@ -31,8 +31,8 @@ func main() {
|
||||
|
||||
// Core kinds composite code generator. Produces all generated code in
|
||||
// grafana/grafana that derives from core kinds.
|
||||
coreKindsGen := codejen.JennyListWithNamer(func(decl *codegen.DeclForGen) string {
|
||||
return decl.Properties.Common().MachineName
|
||||
coreKindsGen := codejen.JennyListWithNamer(func(def *codegen.DefForGen) string {
|
||||
return def.Properties.Common().MachineName
|
||||
})
|
||||
|
||||
// All the jennies that comprise the core kinds generator pipeline
|
||||
@@ -56,7 +56,7 @@ func main() {
|
||||
groot := filepath.Dir(cwd)
|
||||
|
||||
rt := cuectx.GrafanaThemaRuntime()
|
||||
var all []*codegen.DeclForGen
|
||||
var all []*codegen.DefForGen
|
||||
|
||||
f := os.DirFS(filepath.Join(groot, kindsys.CoreDeclParentPath))
|
||||
kinddirs := elsedie(fs.ReadDir(f, "."))("error reading core kind fs root directory")
|
||||
|
||||
Reference in New Issue
Block a user