exec cue cmd foo
cmp stdout cue_cmd_foo_both.golden

-- cue.mod/module.cue --
module: "mod.test/test"
language: version: "v0.9.0"
-- sub/sub.cue --
package sub

User: "sub"
-- x_tool.cue --
package x

import (
 "tool/cli"

 "mod.test/test/sub"
)

command: foo: cli.Print & {
 text: "test \(sub.User)"
}
-- cue_eval.golden --
x: "sub"
-- cue_cmd_foo_both.golden --
test sub