fix: Improve custom commands formatters and add outputs#3228
fix: Improve custom commands formatters and add outputs#3228danimtb wants to merge 5 commits intoconan-io:release/2.0from
Conversation
| def output_text(msg): | ||
| ConanOutput().info(msg) |
There was a problem hiding this comment.
output text shouldn't use ConanOutput(), that goes to sys.stderr, it should probably use cli_out_write() too
There was a problem hiding this comment.
but ConanOutput() is kind of "non-parseable" user output right? Why should it use cli_out_write()? This is what was confusing to me and what I'd like to clarify with this PR
There was a problem hiding this comment.
If it is a "formatter", it is intended for some kind of "final message" result. Even if in the text format is not machine readable, it should go to stdout, not to stderr, because it is the output of the command.
If that is not the case, and it is just informational message, it can be put in the command itself, and not in the formatter.
There was a problem hiding this comment.
I still see the ConanOutput().info() and not cli_out_write(), did you forget to push changes?
| def output_text(msg): | ||
| ConanOutput().info(msg) |
There was a problem hiding this comment.
I still see the ConanOutput().info() and not cli_out_write(), did you forget to push changes?
Co-authored-by: James <[email protected]>
Some additional info I found missing while I was developing custom commands for the build info