-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
tasks-json
, version
and help
flag should imply silent
#157
Comments
I have this issue with both the standalone CLI ( Running from bash in my project:
The linked issue (with Webstorm) uses the command:
So it uses the bin included in |
That's frightening 😉Thanks for more details. |
@demurgos @phated About If it is needed to suppress requiring logs for |
|
tasks-json
flag should imply silent
tasks-json
, version
and help
flag should imply silent
A fix for this has been published in gulp-cli 2.1.0! |
The expected output of
tasks-json
is to emit a JSON representation of the available tasks to the standard output.Some extra logs may be emitted, causing parse errors by consummers. For example when a gulpfile is transpiled, it emits the line
[<time>] Requiring external module <transpiler>
followed by the JSON output.The workaround is to use the
--silent
flag to suppress the extra logs. Some tools may be missing this flag so they do not work reliably when extra logs are emitted.Enabling the
--silent
flag automatically when--tasks-json
is used and no log-level is configured would fix those errors and improve ergonomics.The text was updated successfully, but these errors were encountered: