-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
No fancy terminal features when stdout not a tty #728
Comments
+1 Also it would be great to have a command line option to force this behaviour :) |
--no-color possibly? |
For CI, it would be great to have a really quiet option that emits trace only on failures (and without control codes). yarn -q ...... # quiet mode Generally you want CI output to be very easy to scan for errors and warnings. Control codes and verbose output make this much harder. |
@sensedeep For the quiet mode, you can see #788 and for the command line option I think #1340 covers it :) So this issue can be closed I think! |
Just tried that in 0.16.1. Seems --silent is not released yet?
|
@sensedeep #788 is not closed so no :) |
The ability to both suppress progress logs and control codes would be great, as it’s making my Viaduct deployment logs look hideous: If this is to be a drop-in replacement for npm, then it should have the user options npm offer. |
Should be fixed with |
This seems to still be a problem:
|
We would appreciate a PR. |
As much as I'd love to send a PR, it's doubtful I will have time. Would you consider re-opening the issue? |
Not this one, the original issue is super old, and it's unclear the one you reported is the same as the one originally referenced (I suspect the problem here is that we're using You can however create a new one, which will make it easier from anyone willing to fix the issue to extract the needed information 🙂 |
removing these codes and the stripping of them from tests/snapshots yarnpkg/yarn#728
removing these codes and the stripping of them from tests/snapshots yarnpkg/yarn#728
removing these codes and the stripping of them from tests/snapshots yarnpkg/yarn#728
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
Color escape codes and progress bars are always output, regardless of whether stdout is a TTY.
If the current behavior is a bug, please provide the steps to reproduce.
To reproduce easily,
yarn | more
. Note the escape codes being printed literally.What is the expected behavior?
When the output of yarn is redirected, do not use color escapes. Likely, the output is going to be processed in some way. Check process.stdout.isTTY() (see https://nodejs.org/api/tty.html#tty_tty for example), before outputting color, doing fancy spinners or progress bars.
Please mention your node.js, yarn and operating system version.
node.js: v6.7.0
yarn: 0.15.1
OS: OSX 10.12
The text was updated successfully, but these errors were encountered: