blob: 812d5a83e1578f23594e66cf2891686b41d29af9 [file] [log] [blame]
cue eval a.cue b.cue
cmp stdout expect-stdout-cue
-- frontmatter.toml --
title = "Packages"
description = ""
-- text.md --
A CUE file is a standalone file by default.
A `package` clause allows a single configuration to be split across multiple
files.
The configuration for a package is defined by the concatenation of all its
files, after stripping the package clauses and not considering imports.
Duplicate definitions are treated analogously to duplicate definitions within
the same file.
The order in which files are loaded is undefined, but any order will result
in the same outcome, given that order does not matter.
-- a.cue --
package config
foo: 100
bar: int
-- b.cue --
package config
bar: 200
-- expect-stdout-cue --
foo: 100
bar: 200