Replies: 1 comment 2 replies
-
@seh - thanks for your patience whilst we complete the migration (#1078) Per our offline conversation, I'm not aware of a way of achieving this. Indeed in #564 (comment) @mpvl and I discussed the possibility of using a bare So in this case that would look like:
How does that sit with you? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Originally opened by @seh in cuelang/cue#1054
Suppose I have CUE file with the following content:
It's a top-level list, not a struct with any field names.
Suppose I'd like to export it as a multi-document YAML stream. Ideally I'd be able to refer to this top-level value in a command like this:
Here I used the identifier
$
in an appeal to Jsonnet, as some way to refer to the top-level value, but of course$
is not understood by CUE.I experimented with using the
--path
and--with-context
flags, to no avail.Beta Was this translation helpful? Give feedback.
All reactions