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
linode-cli v5.51.0 Built from spec version 4.176.0
linode-cli linodes create [...args...] --json | jq -r .[].id
parse error: Invalid numeric literal at line 1, column 6
12345678
The problem occurs because linode-cli prints warnings and error messages to stdout. In this case, the (successful) command prints
linode-cli
Using default values: {'authorized_users': ['jschauma']}; use the --no-defaults flag to disable defaults
to stdout before printing the json output. This then leads to tools not being able to consume the output as expected.
The correct behavior here is to send all error messages and warnings to stderr, like a good little Unix tool.
linode-cli linodes create [...args that produce a warning...] --json | jq -r .[].id
The text was updated successfully, but these errors were encountered:
send errors and warnings to stderr
199537c
This should help address linode#643, although possibly only in part.
@jschauma Thank you for the contribution! Team will review the PR shortly 👍
Sorry, something went wrong.
No branches or pull requests
CLI Version
linode-cli v5.51.0 Built from spec version 4.176.0
Command
linode-cli linodes create [...args...] --json | jq -r .[].id
Output
parse error: Invalid numeric literal at line 1, column 6
Expected Behavior
12345678
Actual Behavior
The problem occurs because
linode-cli
prints warnings and error messages to stdout. In this case, the (successful) command printsto stdout before printing the json output. This then leads to tools not being able to consume the output as expected.
The correct behavior here is to send all error messages and warnings to stderr, like a good little Unix tool.
Steps to Reproduce
linode-cli linodes create [...args that produce a warning...] --json | jq -r .[].id
The text was updated successfully, but these errors were encountered: