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

Add structured output formats to CLI #5

Open
3 tasks
jtracey opened this issue Nov 1, 2022 · 0 comments
Open
3 tasks

Add structured output formats to CLI #5

jtracey opened this issue Nov 1, 2022 · 0 comments
Labels
cli Improvements or fixes in the CLI

Comments

@jtracey
Copy link
Owner

jtracey commented Nov 1, 2022

Currently, the CLI's output is formatted as some hacked together human-readable strings. You could probably get decently far with piping it into something else if you really wanted to, but it's not intended to be stable or designed to be easy to do so. We should add more structured output, for easier use with other programs:

  • JSON: Universally understood, should be pretty simple, especially if we use a library like Serde.
  • Raw: Just dumping the objects out as they're read off the wire. In some ways would basically turn the CLI into a sanity-checking netcat, but it could still be useful, especially for debugging and creating tests.
  • Whatever else? Again, if we use Serde, it should be pretty easy to support other output formats.
@jtracey jtracey added the cli Improvements or fixes in the CLI label Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Improvements or fixes in the CLI
Projects
None yet
Development

No branches or pull requests

1 participant