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 -- |