github.com/solo-io/cue@v0.4.7/doc/tutorial/basics/4_references/50_emit.txt (about)

     1  cue eval emit.cue
     2  cmp stdout expect-stdout-cue
     3  
     4  -- frontmatter.toml --
     5  title = "Emit Values"
     6  description = ""
     7  
     8  -- text.md --
     9  By default all top-level fields are emitted when evaluating a configuration.
    10  Embedding a value at top-level will cause that value to be emitted instead.
    11  
    12  Emit values allow CUE configurations, like JSON,
    13  to define any type, instead of just structs, while keeping the common case
    14  of defining structs light.
    15  
    16  -- emit.cue --
    17  "Hello \(#who)!"
    18  
    19  #who: "world"
    20  
    21  -- expect-stdout-cue --
    22  "Hello world!"