blob: 29516559d67d6e218a0adf079149d7688d8f0cd8 [file] [log] [blame]
cue eval --out json x.cue
-- cue.mod/module.cue --
module: "mod.com"
-- x.cue --
package x
#Guide: {
Terminals: [string]: #Terminal
Steps: [string]: #Step
#TerminalName: or([ for k, _ in Terminals {k}])
#Step: {
Terminal: #TerminalName
Cmd: string
}
#Terminal: {
Image: string
}
}
g: #Guide & {
Terminals: client: {
Image: "golang"
}
Steps: {
list: {
Terminal: "client"
Cmd: "ls"
}
}
}