Skip to content
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

[NFR] Ability to suppress progress with --no-progress flag. #1340

Closed
virgofx opened this issue Oct 21, 2016 · 4 comments
Closed

[NFR] Ability to suppress progress with --no-progress flag. #1340

virgofx opened this issue Oct 21, 2016 · 4 comments

Comments

@virgofx
Copy link

virgofx commented Oct 21, 2016

Feature request to add the --no-progress flag.

Why?
For systems that pipe the stream ... e.g. build systems, CI systems, they don't have ability to render progress via the \r modifier or other replacement modifier.

Composer, NPM and other package manager all include the --no-progress option to suppress progress.

Currently:
image

Would like:
yarn install --no-progress

yarn install
v0.16.0
[1/4] Resolving packages...
is-extendable@^0.1.0⠄ is-extendable@^0.1.0⡀ is-extendable@^0.1.0⢀ is-extendable@^0.1.0⠠ is-extendable@^0.1.0⠐ is-extendable@^0.1.0⠈ is-extendable@^0.1.0⠁ is-extendable@^0.1.0⠂ is-extendable@^0.1.0
[2/4] Fetching packages...
warning fsevents@1.0.14: The platform "linux" is incompatible with this module.
info "fsevents@1.0.14" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning Unmet peer dependency "eslint@2.x - 3.x".
warning Unmet peer dependency "eslint@^2.0.0 || ^3.0.0".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 11.65s.
@victornoel
Copy link
Contributor

See also #788 and #728

By the way, on gitlab-ci, the colors and progress is not present (thanks to #728 which is partially solved).

@virgofx
Copy link
Author

virgofx commented Oct 21, 2016

Thanks @victornoel . Definitely related. I would argue that it would be beneficial to have both options as there are definitely use cases for both:

--silent - Does not output STDOUT (ERR only)
--no-progress - Outputs both STDOUT and STDERR, just no TTY, Backspace modifiers, \R modifiers, Progress information

Composer has the no-progress option detailed here

@sebmck
Copy link
Contributor

sebmck commented Nov 1, 2016

Resolved via #1190.

@sebmck sebmck closed this as completed Nov 1, 2016
@virgofx
Copy link
Author

virgofx commented Nov 1, 2016

Thanks ! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants