gulp-run icon indicating copy to clipboard operation
gulp-run copied to clipboard

Option to print command only if it has stderr

Open Jenselme opened this issue 9 years ago • 2 comments

Hi,

Can you add an option to print the command only if it has an stderr (with the stderr of course)? I am compelled to run a command that takes a long file list as argument and I would like to avoid to see this multiple line command. Verbosity:0 doesn't do the trick since I would like to see the error output if it has one.

Jenselme avatar May 20 '15 10:05 Jenselme

I would love this as well. I could see it implemented in two ways:

  1. Alter 'silent' to only print stderr and not the command

  2. Use verbosity : 0 to only print stderr and not the command, and -1 for completely silent.

I think option 1 makes the most sense. Without fully reading the docs, I used silent : true first and was surprised when the command displayed.

kcaran avatar Nov 21 '16 20:11 kcaran

Hmmm... maybe a bunch of constants makes the verbosity more comfortable.

e.g.

VERBOSITY_ALL = 3
VERBOSITY_BUFFERED = 2
VERBOSITY_ERRORS_ONLY = 1

thoughts?

m19c avatar Nov 22 '16 08:11 m19c