We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
--json
I found myself confused this morning running commands with --json because we're squashing prints to stdout (intentionally).
We should unify printing to stderr {"error":} if we have an error and the CLI should be outputting JSON, rather than nothing and just the exit code.
cli.ExitWithError
cli.ExitWithWarning
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I found myself confused this morning running commands with --json because we're squashing prints to stdout (intentionally).
We should unify printing to stderr {"error":} if we have an error and the CLI should be outputting JSON, rather than nothing and just the exit code.
Acceptance Criteria
cli.ExitWithError
should detect if the output format is JSON and structure the error output in JSONcli.ExitWithWarning
should detect if the output format is JSON and structure the warning output as an error in JSONThe text was updated successfully, but these errors were encountered: