blob: a0dac4514e15768a5d1f8c68d6edf580a8ca56b4 [file] [log] [blame]
cue cmd echo
stdout 'Hello World!'
cue cmd echohidden
stdout 'Hello World!'
-- cue.mod/module.cue --
module: "example.com/foo"
-- 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
}
}
// Issue #924
command: echohidden: {
echo: {
kind: "exec"
cmd: "echo Hello \(_who)!"
stdout: string
}
task: display: {
kind: "print"
text: echo.stdout
}
}