Yarn: [NFR] Ability to suppress progress with --no-progress flag.

Created on 21 Oct 2016  ·  4Comments  ·  Source: yarnpkg/yarn

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 [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning Unmet peer dependency "[email protected] - 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.

Most helpful comment

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

All 4 comments

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).

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

Resolved via #1190.

Thanks ! 👍

Was this page helpful?
0 / 5 - 0 ratings