-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(printer): add support for YAML output (#1308)
- Loading branch information
Showing
8 changed files
with
174 additions
and
1 deletion.
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
17 changes: 17 additions & 0 deletions
17
internal/core/testdata/test-yaml-printer-human-list-with-options-unknown-column.golden
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,17 @@ | ||
π²π²π² EXIT CODE: 0 π²π²π² | ||
π©π©π© STDOUTοΈ π©π©π©οΈ | ||
- id: 111111111-111111111 | ||
name: David Copperfield | ||
- id: 222222222-222222222 | ||
name: Xavier Niel | ||
π©π©π© JSON STDOUT π©π©π© | ||
[ | ||
{ | ||
"id": "111111111-111111111", | ||
"name": "David Copperfield" | ||
}, | ||
{ | ||
"id": "222222222-222222222", | ||
"name": "Xavier Niel" | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
internal/core/testdata/test-yaml-printer-human-list-with-options.golden
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,17 @@ | ||
π²π²π² EXIT CODE: 0 π²π²π² | ||
π©π©π© STDOUTοΈ π©π©π©οΈ | ||
- id: 111111111-111111111 | ||
name: David Copperfield | ||
- id: 222222222-222222222 | ||
name: Xavier Niel | ||
π©π©π© JSON STDOUT π©π©π© | ||
[ | ||
{ | ||
"id": "111111111-111111111", | ||
"name": "David Copperfield" | ||
}, | ||
{ | ||
"id": "222222222-222222222", | ||
"name": "Xavier Niel" | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
internal/core/testdata/test-yaml-printer-human-list-without-option.golden
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,17 @@ | ||
π²π²π² EXIT CODE: 0 π²π²π² | ||
π©π©π© STDOUTοΈ π©π©π©οΈ | ||
- id: 111111111-111111111 | ||
name: David Copperfield | ||
- id: 222222222-222222222 | ||
name: Xavier Niel | ||
π©π©π© JSON STDOUT π©π©π© | ||
[ | ||
{ | ||
"id": "111111111-111111111", | ||
"name": "David Copperfield" | ||
}, | ||
{ | ||
"id": "222222222-222222222", | ||
"name": "Xavier Niel" | ||
} | ||
] |
9 changes: 9 additions & 0 deletions
9
internal/core/testdata/test-yaml-printer-human-simple-with-options.golden
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,9 @@ | ||
π²π²π² EXIT CODE: 0 π²π²π² | ||
π©π©π© STDOUTοΈ π©π©π©οΈ | ||
id: 111111111-111111111 | ||
name: David Copperfield | ||
π©π©π© JSON STDOUT π©π©π© | ||
{ | ||
"id": "111111111-111111111", | ||
"name": "David Copperfield" | ||
} |
9 changes: 9 additions & 0 deletions
9
internal/core/testdata/test-yaml-printer-human-simple-without-option.golden
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,9 @@ | ||
π²π²π² EXIT CODE: 0 π²π²π² | ||
π©π©π© STDOUTοΈ π©π©π©οΈ | ||
id: 111111111-111111111 | ||
name: David Copperfield | ||
π©π©π© JSON STDOUT π©π©π© | ||
{ | ||
"id": "111111111-111111111", | ||
"name": "David Copperfield" | ||
} |
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,5 @@ | ||
π²π²π² EXIT CODE: 0 π²π²π² | ||
π©π©π© STDOUTοΈ π©π©π©οΈ | ||
[] | ||
π©π©π© JSON STDOUT π©π©π© | ||
[] |