This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue/cmd: fix stdin usage for import
Closes #116 Change-Id: I23b51fb9580002bf8de426d573a402fd8589503f Reviewed-on: https://cue-review.googlesource.com/c/cue/+/5242 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
stdin in | ||
cue import yaml: - | ||
cmp stdout stdout-cue | ||
|
||
stdin in | ||
cue export yaml: - | ||
cmp stdout stdout-json | ||
|
||
stdin in | ||
cue eval yaml: - | ||
cmp stdout stdout-cue | ||
|
||
stdin in | ||
cue def yaml: - | ||
cmp stdout stdout-cue | ||
|
||
-- in -- | ||
foo: bar | ||
-- stdout-cue -- | ||
foo: "bar" | ||
-- stdout-json -- | ||
{ | ||
"foo": "bar" | ||
} |