...
1exec cue eval a.cue b.cue
2cmp stdout expect-stdout-cue
3
4-- frontmatter.toml --
5title = "Packages"
6description = ""
7
8-- text.md --
9A CUE file is a standalone file by default.
10A `package` clause allows a single configuration to be split across multiple
11files.
12
13The configuration for a package is defined by the concatenation of all its
14files, after stripping the package clauses and not considering imports.
15
16Duplicate definitions are treated analogously to duplicate definitions within
17the same file.
18The order in which files are loaded is undefined, but any order will result
19in the same outcome, given that order does not matter.
20
21-- a.cue --
22package config
23
24foo: 100
25bar: int
26
27-- b.cue --
28package config
29
30bar: 200
31
32-- expect-stdout-cue --
33foo: 100
34bar: 200
View as plain text