cue eval ./pkg:foo | |
-- cue.mod/module.cue -- | |
module: "example.com" | |
-- in.cue -- | |
package foo | |
import "example.com/pkg:bar" | |
bar | |
z: 3 | |
-- pkg/bar.cue -- | |
package bar | |
import "example.com/pkg:baz" | |
foo: { | |
baz | |
y: 2 | |
} | |
foo | |
-- pkg/baz.cue -- | |
package baz | |
x: 1 | |
-- out/eval -- | |
(struct){ | |
foo: (struct){ | |
x: (int){ 1 } | |
y: (int){ 2 } | |
} | |
z: (int){ 3 } | |
x: (int){ 1 } | |
y: (int){ 2 } | |
} | |
-- out/compile -- | |
--- in.cue | |
{ | |
〈import;"example.com/pkg:bar"〉 | |
z: 3 | |
} |