-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Option to disable curl-like download progress #1079
Comments
Totally a reasonable request. I thought there was an issue already about this but I can't find it.
|
Yay, I may come up with a PR this week :) |
The following seems roughly equivalent for
|
If it's as widely supported, I'd prefer to use the double-dashed (longer, more verbose) argument names, but 👍 |
I don't mind using long double-dashed options. As far as wide support, I don't know. I'm using curl and wget on Mac and I know those options exist on Linux (so compatible with some form of BSD and Linux). |
@samrocketman would you like to help test/review #1422? |
@PeterDaveHello thanks for including me. I have given some feedback on your PR. I'll test it fully when I think it is ready. I accidentally forgot about this issue which is why I didn't follow through on contributing a PR. Thanks for your work! |
Maybe instead of (or in addition to) an option the progress should also be silenced if STDERR in not connected to the terminal, like: if test -t 2
then
# be verbose
else
# be silent
fi It should work for Vagrant provision script. Just an idea. |
Reopening; we still need to switch to |
It seems this feature has been in the |
@danielmcq you're misreading; the commit was originally authored a year ago, but it was merged 19 hours ago. |
@ljharb Sorry about that. I’m just glad that it’s in there now. I can wait for it to be in the next release. 😊 |
* Add nvm from homebrew * Add an inst_nvm command which will call it This version of nvm 0.3.11 doesn't support a --no-progress option so it spews onto the screen. An update [here] does. [here]: nvm-sh/nvm#1079
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
It should be automatically enabled when CI environment variable is set |
Any behavior that magically kicks in when it thinks it's in CI is confusing, hard to debug, and hard to maintain, so i'm skeptical about that. |
This is how other tools work. Both yarn and npm adjust behavior based on this variable. |
I'm aware; that doesn't mean it's a good idea. tbh it seems like the better option is for jenkins to support console lines that update in-place in its streaming log. |
I have decided to create a generic solution for myself that applies to any utility and any CI. https://github.com/samrocketman/home/blob/main/bin/reduced-log-run.sh Here's some example usage reduced-log-run.sh -- nvm install thing |
https://github.com/creationix/nvm/blob/1c3f8da6c38bdfecf3dbf01c6753a6fd27032b9d/nvm.sh#L45-L51
That section of code looks pretty messy when nvm is used in a CI system like Jenkins. Here's a small snippet of what that looks like to Jenkins' streaming console log.
It would be great if there was an option to disable the progress bar. While it's true I can discard output (e.g.
nvm install v4.2.3 &> /dev/null
) I fear discarding potentially valuable troubleshooting output from stderr.The text was updated successfully, but these errors were encountered: