forked from cue-lang/cue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue: add newline between imported objects
Signed-off-by: Marcel van Lohuizen <mpvl@golang.org> Change-Id: Ie537e739d8ea1a616a45677352fde090090fcc10 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/532275 Unity-Result: CUEcueckoo <cueckoo@cuelang.org> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Paul Jolly <paul@myitcv.io>
- Loading branch information
Showing
2 changed files
with
22 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,21 @@ | ||
cue import -o - x.yaml -l objects: -l metadata.name | ||
cmp stdout expect-stdout | ||
|
||
-- x.yaml -- | ||
kind: "foo" | ||
metadata: | ||
name: foo | ||
--- | ||
kind: "foo" | ||
metadata: | ||
name: bar | ||
|
||
-- expect-stdout -- | ||
objects: foo: { | ||
kind: "foo" | ||
metadata: name: "foo" | ||
} | ||
objects: bar: { | ||
kind: "foo" | ||
metadata: name: "bar" | ||
} |