Consider sending warnings to stderr #1306
Labels
dependency
issue resides in a rebar3 dependency
next major
could only be changed in the next major version of rebar
Milestone
Environment
Current behaviour
The output of commands like
rebar3 path
, which would be useful in scripting contexts, cannot be used by other tools because their output is intermingled with warning messages (and colors).Expected behaviour
It would be nice if
?WARN
and friends went to stderr, at least if!isatty(stdin)
.I looked into fixing this, but evidently the change needs to be made to erlware_commons; although the change is trivial, I can imagine changing a widely-used dependency might meet with some resistance. Still, it seems as if at least
path
,pkgs
, andversion
could benefit from this. Right now, I have to use awful hacks to use these in shell scripting contexts.(I imagine that the alternate suggestion is to run some invocation of
rebar_agent
througherl -eval
, but it seems a shame to have a command-line tool and not to be able to use it directly in scripts.)The text was updated successfully, but these errors were encountered: