-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Default CLI to indent mode #2607
Comments
Another thing to check here is to ensure that all commands that output JSON have the |
Something to keep in mind, many commands use queriers which JSON serialize and return the byte slice response. That is then fed directly to output in the command. To respect the indent flag in these cases, you'll have to deserialize and then re-serialize once again (correct me if I'm wrong). |
@alexanderbez Yeah, the |
To put it differently, it's easy for user to set |
It defaults to false, users can override it via gaiacli config and avoid to append --indent to all commands: $ gaiacli config indent true Closes: #2607
It defaults to false, users can override it via gaiacli config and avoid to append --indent to all commands: $ gaiacli config indent true Closes: #2607
It's easy for automated scripts who don't want indentation to disable it with a flag, but annoying for users to have to pass a flag every time they want a readable response.
The text was updated successfully, but these errors were encountered: