Skip to content
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

Feature request: compact jq output #125

Open
henrikrudstrom opened this issue Dec 9, 2021 · 2 comments
Open

Feature request: compact jq output #125

henrikrudstrom opened this issue Dec 9, 2021 · 2 comments

Comments

@henrikrudstrom
Copy link

Would be nice to have the possibility to have single line output when using --jq. for example when i use --jq 'select(.field == "value") i get nicely formatted json, but it becomes a lot of lines.
A very simple idea could be to add an option --jqc or --jq-c that maps to the jq -c command for compact jq output.
Happy to provide a PR if this is desirable.

@henrikrudstrom henrikrudstrom changed the title Feature request Feature request: compact jq output Dec 9, 2021
@johanhaleby
Copy link
Owner

Why not, maybe --jqc would be a good idea? A PR would be nice :)

@henrikrudstrom
Copy link
Author

Great. #126
Let me know what needs to be changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants