Refactored store codegen, replace squirrel with goqu

This commit is contained in:
Denis Arh
2022-04-23 16:34:04 +02:00
parent e75a57b0e9
commit 773d64636f
544 changed files with 47139 additions and 39359 deletions
-14
View File
@@ -57,10 +57,6 @@ func Proc() {
restSrc []string
restDefs []*restDef
storeSrcPath = filepath.Join("store", "*.yaml")
storeSrc []string
storeDefs []*storeDef
aFuncsSrcPath = filepath.Join("*", "automation", "*_handler.yaml")
aFuncsSrc []string
aFuncsDefs []*aFuncDefs
@@ -156,9 +152,6 @@ func Proc() {
restSrc = glob(restSrcPath)
output("loaded %d rest definitions from %s\n", len(restSrc), restSrcPath)
storeSrc = glob(storeSrcPath)
output("loaded %d store definitions from %s\n", len(storeSrc), storeSrcPath)
aFuncsSrc = glob(aFuncsSrcPath)
output("loaded %d function definitions from %s\n", len(aFuncsSrc), aFuncsSrcPath)
@@ -176,7 +169,6 @@ func Proc() {
fileList = append(fileList, typeSrc...)
fileList = append(fileList, exprTypeSrc...)
fileList = append(fileList, restSrc...)
fileList = append(fileList, storeSrc...)
fileList = append(fileList, aFuncsSrc...)
for _, d := range fileList {
@@ -247,12 +239,6 @@ func Proc() {
return
}
if storeDefs, err = procStore(storeSrc...); err == nil {
if genCode {
err = genStore(tpls, storeDefs...)
}
}
if outputErr(err, "failed to process store:\n") {
return
}