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(cmd): allow tables to be output as json #465

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

rektdeckard
Copy link
Contributor

All commands with structured data output typically printed as a table may now be printed to stdout as JSON by using the --json flag. We also suppress additional output some commands would print unless used with the --verbose flag, in order to keep the output valid JSON.

Resolves #454

cmd/lk/proto.go Outdated Show resolved Hide resolved
cmd/lk/room.go Outdated Show resolved Hide resolved
Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rektdeckard rektdeckard merged commit f9635e1 into main Nov 13, 2024
3 checks passed
@rektdeckard rektdeckard deleted the tobias/dex-861-add-flag-to-output-tables-as-json branch November 13, 2024 15:57
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.

Feature request: support json output in list commands
3 participants