This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
cmd/cue: make it possible for import to operate on standard input #116
Labels
FeatureRequest
New feature or request
good first issue
Good for newcomers
roadmap/cli
Specific tag for roadmap issue #337
Milestone
Currently, it's possible to ask
cue import
to produce the result to the standard output, but there's no way to tell it to read from standard input.It's not possible to do
cue import /dev/stdin
because/dev/stdin
doesn't have a file extension.As a corollary to this, it would be nice to be able to import files that don't have the conventional file extension, particularly when specifying the file names directly on the command line.
Perhaps a
-ext json
flag ("treat all files as if their extension was JSON") might work, or perhaps--force-type
(-F
for short?) ("treat all files as if their extension is as declared by the-type
flag").The text was updated successfully, but these errors were encountered: