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