blob: c64887b339bc96c3c24d2a48a09f8b702167fa81 [file] [log] [blame]
cue eval emit.cue
cmp stdout expect-stdout-cue
-- frontmatter.toml --
title = "Emit Values"
description = ""
-- text.md --
By default all top-level fields are emitted when evaluating a configuration.
Embedding a value at top-level will cause that value to be emitted instead.
Emit values allow CUE configurations, like JSON,
to define any type, instead of just structs, while keeping the common case
of defining structs light.
-- emit.cue --
"Hello \(who)!"
who :: "world"
-- expect-stdout-cue --
"Hello world!"