blob: 9f76b2e3eb22eedd5f1cd4afd44e884bed8e8f6d [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: {
task echo: {
kind: "exec"
cmd: "echo \(message)"
stdout: string
}
task display: {
kind: "print"
text: task.echo.stdout
}
}
-- cue.mod --