-
-
Notifications
You must be signed in to change notification settings - Fork 949
feat(output): implement YAML and JSON output #1800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Dustin-Jiang
wants to merge
33
commits into
sharkdp:master
Choose a base branch
from
Dustin-Jiang:feature-yaml
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 20 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
ffec773
feat(output): add yaml output
Dustin-Jiang 97d6bfb
docs: update CHANGELOG
Dustin-Jiang cdb7bc0
fix: escape path, and disable permission display on Windows
Dustin-Jiang c9cbb25
fix(ci): fix warnings in cargo clippy
Dustin-Jiang 192ca92
refactor: make output stateful
Dustin-Jiang 602b389
feat(output): add json output
Dustin-Jiang eb2f10d
fix(ci): fix warnings in cargo clippy
Dustin-Jiang 4ea0ed3
fix: fix function calling in Windows
Dustin-Jiang e225946
fix: fix reference mutable type annotation in Windows
Dustin-Jiang 977ee0e
fix: resolve suggested changes
Dustin-Jiang 6434ee5
fix: move JSON array printing to Printer
Dustin-Jiang b2d385f
feat: implement NDJSON output
Dustin-Jiang 703b32f
fix(ci): fix warnings in cargo clippy
Dustin-Jiang 650e86c
tests: add tests for `--output` flags
Dustin-Jiang 2e463c7
docs: update manpage for `--output` flags
Dustin-Jiang e46cce0
Merge branch 'master' into feature-yaml
Dustin-Jiang 10570e9
tests: fix invalid utf8 base64 test
Dustin-Jiang 949a5aa
docs: update manpage to change "ndjson" to "jsonl"
Dustin-Jiang cb3ef97
fix: change FileDetail creating logic and base64 import
Dustin-Jiang 60ecc09
fix: change ndjson flag to commonly used jsonl
Dustin-Jiang 7c9f1d8
fix: replace String to &str with lifetime, adopt as_encoded_bytes
Dustin-Jiang 2c1bdb5
feat: add --json flag for JSONL output
Dustin-Jiang e831976
docs: add --json flag to manpage
Dustin-Jiang 30c9e86
Merge branch 'master' into feature-yaml
Dustin-Jiang 49654f4
fix(clippy): collapse if blocks
Dustin-Jiang e4741c0
Merge remote-tracking branch 'origin/master' into feature-yaml
Dustin-Jiang 4a0ecc5
Merge remote-tracking branch 'origin/master' into feature-yaml
Dustin-Jiang 56d347e
fix: remove the `--output` flag
Dustin-Jiang 6db4409
tests: fix `--output` tests to `--json`
Dustin-Jiang c2c8497
docs: add fields explaination in manual
Dustin-Jiang 13d0868
docs: change the flag to `--json` in CHANGELOG.md
Dustin-Jiang 47ee6ce
fix(printer): make `Priner.stdout` private
Dustin-Jiang 58b90f7
Merge remote-tracking branch 'origin/master' into feature-yaml
Dustin-Jiang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ | |
|
|
||
| ## Features | ||
|
|
||
| - Add `--yaml` flag for YAML format output. | ||
|
|
||
| ## Bugfixes | ||
|
|
||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.