3
0

Apply formatting to all cue files

This commit is contained in:
Denis Arh
2022-02-06 16:14:01 +01:00
parent 80d9b466ac
commit 3212f00325
8 changed files with 10 additions and 11 deletions

View File

@@ -24,7 +24,7 @@ localeService:
expIdent: res.expIdent
ident: res.ident
references: [ for p in res.parents {p}, {param: "id", refField: "ID"}]
references: [ for p in res.parents {p}, {param: "id", refField: "ID"}]
extended: res.locale.extended

View File

@@ -23,7 +23,7 @@ localeTypes:
const: res.locale.resource.const
type: res.locale.resource.type
references: [ for p in res.parents {p}, {param: "id", refField: "ID"}]
references: [ for p in res.parents {p}, {param: "id", refField: "ID"}]
extended: res.locale.extended

View File

@@ -28,7 +28,7 @@ rbacAccessControl:
description: op.description
checkFuncName: op.checkFuncName
references: [ for p in res.parents {p}, {param: "id", refField: "ID"}]
references: [ for p in res.parents {p}, {param: "id", refField: "ID"}]
},
for op in cmp.rbac.operations {
"op": op.handle

View File

@@ -25,7 +25,7 @@ rbacTypes:
attFunc: "\(res.expIdent)RbacAttributes"
goType: res.expIdent
references: [ for p in res.parents {p}, {param: "id", refField: "ID"}]
references: [ for p in res.parents {p}, {param: "id", refField: "ID"}]
},
{
const: "ComponentResourceType"

View File

@@ -4,8 +4,8 @@ package schema
template: string
output: string
syntax: "go"
if output =~ "\\.adoc" {
syntax: string | *"go"
if output =~ "\\.adoc$" {
syntax: "adoc"
}

View File

@@ -14,8 +14,8 @@ import (
extended: bool | *false
resource: {
type: string
const: string | *("\(resourceExpIdent)ResourceTranslationType")
type: string
const: string | *("\(resourceExpIdent)ResourceTranslationType")
}
keys: {

View File

@@ -44,8 +44,8 @@ import (
_operation: strings.Replace(strings.Replace(handle, "-", " ", -1), "_", " ", -1)
_opSplit: strings.Split(_operation, ".")
_opFlip: [_opSplit[len(_opSplit)-1]] + _opSplit[0:len(_opSplit)-1]
_opFinal: strings.Replace(strings.ToTitle(strings.Join(_opFlip, " ")), " ", "", -1)
_opFlip: [_opSplit[len(_opSplit)-1]] + _opSplit[0:len(_opSplit)-1]
_opFinal: strings.Replace(strings.ToTitle(strings.Join(_opFlip, " ")), " ", "", -1)
if _resourceExpIdent == _|_ {
checkFuncName: #expIdent | *"Can\(_opFinal)"

View File

@@ -16,7 +16,6 @@ import (
// More liberal then identifier, allows underscores and dots
#baseHandle: =~"^[a-z][a-z0-9-]*[a-z0-9]+$"
#_base: {
// lowercase dash-separated words
// used to build ident and exported identifiers