-
Notifications
You must be signed in to change notification settings - Fork 171
cue export --output=list for ldjson format #280
Comments
So IIUC, --list takes a stream and interprets it as a single list value. So the idea is that if the output of CUE is a list, the We could indeed also go off the file name. This is a bit trickier. The CUE tool allows streaming semantics without interpreting it as a list (e.g. for vet). So it may be strange to interpret |
FYI, if the |
The idea is that the build.File type will be added to the build.Instance type, replacing the current file specs. It will be populated by the load package. The command line tool can subsequently use this package to determine settings on how to interpret build.File. It is a separate internal package so that the API can be shared by load and cmd. Issue #280 Issue #254 Issue #183 Issue #130 Issue #116 Change-Id: I47f2391945113fe664f0ec33b0048be70326edb5 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/4946 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
I believe this will be addressed by the CLs that will be submitted soon. |
Issue #280 Change-Id: I36de4b3ec70b802ecfe6264015954930dc4bdc16 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/5243 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
This issue has been migrated to cue-lang/cue#280. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Hi.
I'm experimenting with using cue to import and export
ldjson
formatted data (basically a list ofjson
structs that are each placed on a single line, separated by a new line character).I'm able to import this format successfully using the
--list
option:cue import --list file.json
(after renaming myfile.ldjson
tofile.json
)The feature request: as
--list
is available as an import option, could something similar be supported as an export option as well?eg:
cue export --out=list .
(or something similar, like--out=ldjson
perhaps)Additionally, perhaps support could be added for the
.ldjson
extension:cue import file.ldjson
Loving cue so far. Thanks for your time!
The text was updated successfully, but these errors were encountered: