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

feat(consume): add output flag to consume for full json output #235

Merged
merged 1 commit into from
Dec 8, 2022
Merged

feat(consume): add output flag to consume for full json output #235

merged 1 commit into from
Dec 8, 2022

Conversation

shousper
Copy link
Contributor

I wanted this, so I wrote it.

  • Deprecate --raw flag of consume subcommand.
  • Add --output flag to consume subcommand with support for default (the current default tabwriter based output format), raw (the current --raw impl.) and a new json format.
  • New json output format is meant to output all metadata + payload and key in a JSON payload for easier use with jq.
  • Maintained automatic decoding and embedding of JSON format keys and payloads, similar to tabwriter output.

@birdayz birdayz self-requested a review December 8, 2022 12:41
@birdayz
Copy link
Owner

birdayz commented Dec 8, 2022

sorry for the late response. this is great, thank you for the contribution!

@birdayz birdayz merged commit 01382ad into birdayz:master Dec 8, 2022
@shousper
Copy link
Contributor Author

shousper commented Dec 8, 2022

@birdayz No worries. Thank you for this great tool! 🖖

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

Successfully merging this pull request may close these issues.

2 participants