blob: d847cab6a6ba9b23b0cded9c3ab519fcf6e04306 [file] [log] [blame]
cue cmd do
cmp stdout expect-stdout
-- expect-stdout --
{"b":"cue"}
-- task_tool.cue --
package home
import (
"encoding/json"
"strings"
"tool/cli"
"tool/exec"
)
foo: {
#a: string
b: #a
}
command: do: {
inputs: name: exec.Run & {
cmd: "echo cue"
stdout: string
}
outputs: print: cli.Print & {
text: json.Marshal(foo & {
#a: strings.TrimSpace(inputs.name.stdout)
})
}
}
-- cue.mod --