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

Generic approach to rendering command output with --json flag #55

Open
avsej opened this issue May 8, 2024 · 0 comments
Open

Generic approach to rendering command output with --json flag #55

avsej opened this issue May 8, 2024 · 0 comments

Comments

@avsej
Copy link
Member

avsej commented May 8, 2024

Right now, each command defines its own structs just for JSON rendering. Would be great if the command would build kind of response, which will be rendered as Plain text or JSON depending on --json flag automatically.

@avsej avsej changed the title Generict approach to rendering command output with --json flag Generic approach to rendering command output with --json flag May 9, 2024
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

1 participant