blob: 5d5a3d30ef5215325bf4f1aaca42623daefb200d [file] [log] [blame]
cue export --out yaml ./hello
cmp stdout expect-stdout
-- expect-stdout --
message: Hello World!
test: {}
-- hello/data.cue --
package hello
_who: "World"
-- hello/hello.cue --
package hello
message: "Hello \(_who)!" // who declared in data.cue
test: {
_foo: string // technically in error, but test anyway.
if len(_foo) > 0 {
command: ["foo", "bar"]
}
}
-- hello/cue.mod --