-
Notifications
You must be signed in to change notification settings - Fork 991
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
[bug][2.0] conan config list prints to stderr #12200
Comments
It is because it has a dedicated The alternatives are:
|
I guess I don't understand why the command has to print both, text and JSON at the same time. Isn't that an either/or thing? I don't even know what I would do with the JSON output of this command. However, the current behavior breaks all kinds of expectations how command line interfaces should behave and that's why I opened the ticket.
You could make the same argument about redirecting non-JSON text output. |
The way the Conan 2.0 cli output is designed is this:
Now, the command at hand I'll check with the team to re-consider this use case of grepping. |
Ok. To me that seems like a pretty uncommon guideline for CLI programs that I've not seen before. IMO most output will still be read by humans and might get grepped, piped to How are you going to handle this? Does the end user always have to remember to redirect Of course I get the need for having stable, machine-readable output but that can be explicitly requested with e.g. the (Another example of this kind of irritating CLI behavior is calling |
This will be changed, @czoido is working on it for next beta.4 |
Just bumped into this and would also like to point out that the output of I'd say the most intuitive way would be to keep the default listing 1-to-1 with other stable formats and add additional flags to make it look nicer. Again with the git examples: |
Fixed by #12235, will be in next beta.4 |
I agree, those explanations can be removed. We have fixed it in #12235, removing those things too, but if there are still some pending or a new one appears, please submit a new issue, or create a PR to remove it. Thanks! |
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
conan config list
prints all available config options to stderr instead of stdout. That makes it difficult/annoying to e.g. grep for options.Logs (Executed commands with output) (Include/Attach if Applicable)
The text was updated successfully, but these errors were encountered: