blob: 4468d6c4d1e4645a83161ab7f8cf0ac36e8b5fba [file] [log] [blame]
cue cmd echo
stdout 'Hello World!'
-- data.cue --
package hello
who :: "World"
-- hello.cue --
package hello
message: "Hello \(who)!" // who declared in data.cue
-- hello_tool.cue --
package hello
command: echo: {
echo: {
kind: "exec"
cmd: "echo \(message)"
stdout: string
}
task: display: {
kind: "print"
text: echo.stdout
}
}
-- cue.mod --