You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if you run yarn wsrun --if ... and the condition script failed, error messages like these are in the output:
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
but these are not useful information, it is expected for the command to fail when the if condition does not met.
In the code, wsrun always set silent option to true if the command is used for the --if argument, but the code is not checking silent flag before output to console, I have to add if (!this.opts.silent) on line
to mute all the output for command evaluation results, so that I can mute all output for commands used in --if arguments.
In this case, should wsrun write anything to console if silent is set to true? If yes, can we add a command line option to mute all output for the commands used as if conditions?
The text was updated successfully, but these errors were encountered:
Just adding a bit more info: I tried several versions (all the 5.x, 4.0.2, about half the 3.x and a couple of 2.x) and all those that work with the flags I have have the issue @yliu-d describes above.
Not sure if this is expected behavior or not.
if you run
yarn wsrun --if ...
and the condition script failed, error messages like these are in the output:but these are not useful information, it is expected for the command to fail when the if condition does not met.
In the code,
wsrun
always setsilent
option totrue
if the command is used for the--if
argument, but the code is not checkingsilent
flag before output to console, I have to addif (!this.opts.silent)
on linewsrun/src/cmd-process.ts
Line 154 in 0a75328
wsrun/src/cmd-process.ts
Line 159 in 0a75328
--if
arguments.In this case, should
wsrun
write anything to console ifsilent
is set to true? If yes, can we add a command line option to mute all output for the commands used as if conditions?The text was updated successfully, but these errors were encountered: