blob: d60c7acdf060f7295c19d3e2e58893e8f8591e24 [file] [log] [blame]
# DO NOT EDIT; generated by go run testdata/gen.go
#
raw: true
eval: true
noOpt: true
-- in.cue --
{
job: [Name=_]: {
name: Name
replicas: uint | *1 @protobuf(10)
command: string
}
job: list: command: "ls"
job: nginx: {
command: "nginx"
replicas: 2
}
}
-- out/def --
job: {
{[Name=string]: {
name: Name, replicas: >=0 | *1 @protobuf(10), command: string
}}
list: {
name: "list"
replicas: >=0 | *1 @protobuf(10)
command: "ls"
}
nginx: {
name: "nginx"
replicas: 2 @protobuf(10)
command: "nginx"
}
}
-- out/export --
job: {
list: {
name: "list"
replicas: 1 @protobuf(10)
command: "ls"
}
nginx: {
name: "nginx"
replicas: 2 @protobuf(10)
command: "nginx"
}
}
-- out/yaml --
job:
list:
name: list
replicas: 1
command: ls
nginx:
name: nginx
replicas: 2
command: nginx
-- out/json --
{"job":{"list":{"name":"list","replicas":1,"command":"ls"},"nginx":{"name":"nginx","replicas":2,"command":"nginx"}}}
-- out/compile --
--- in.cue
{
{
job: {
[_]: {
name: 1;-〉
replicas: (&(int, >=0)|*1)
command: string
}
}
job: {
list: {
command: "ls"
}
}
job: {
nginx: {
command: "nginx"
replicas: 2
}
}
}
}
-- out/eval --
(struct){
job: (struct){
list: (struct){
command: (string){ "ls" }
name: (string){ "list" }
replicas: (int){ |(*(int){ 1 }, (int){ &(>=0, int) }) }
}
nginx: (struct){
command: (string){ "nginx" }
replicas: (int){ 2 }
name: (string){ "nginx" }
}
}
}