Apply formatting to all cue files
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -4,8 +4,8 @@ package schema
|
||||
template: string
|
||||
output: string
|
||||
|
||||
syntax: "go"
|
||||
if output =~ "\\.adoc" {
|
||||
syntax: string | *"go"
|
||||
if output =~ "\\.adoc$" {
|
||||
syntax: "adoc"
|
||||
}
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ import (
|
||||
extended: bool | *false
|
||||
|
||||
resource: {
|
||||
type: string
|
||||
const: string | *("\(resourceExpIdent)ResourceTranslationType")
|
||||
type: string
|
||||
const: string | *("\(resourceExpIdent)ResourceTranslationType")
|
||||
}
|
||||
|
||||
keys: {
|
||||
|
||||
@@ -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)"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user