cue cmd ref
cmp stdout expect-stdout

-- expect-stdout --
hello

-- task_tool.cue --
package home

import (
	"tool/cli"
	"tool/exec"
)

command: ref: {
	t1: exec.Run & {
			ref: t1.stdout
			cmd: ["sh", "-c", "echo hello"]
			stdout: string
	}
	t2: cli.Print & {
		text: t1.stdout
	}
}

-- task.cue --
package home
-- cue.mod --
