Skip to content

Conversation

@mbleigh
Copy link
Contributor

@mbleigh mbleigh commented Oct 15, 2015

Instead, print out 100 dots for each percent to stdout.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this logic is correct. In the case where !process.stderr is true, we don't want to use the ProgressBar module since it may throw (as we have seen). I think the logic we want is if (process.stderr && !options.nonInteractive).

@jwngr jwngr assigned mbleigh and unassigned jwngr Oct 15, 2015
@jwngr
Copy link

jwngr commented Oct 15, 2015

One comment on the logic for when to switch from the progress bar to the dots. Otherwise, looks good. Back to you.

@mbleigh
Copy link
Contributor Author

mbleigh commented Oct 15, 2015

@jwngr think I fixed the logic. Can you try my branch locally just for a second set of hands-on before merging?

@mbleigh mbleigh assigned jwngr and unassigned mbleigh Oct 15, 2015
jwngr pushed a commit that referenced this pull request Oct 15, 2015
Don't use ProgressBar when non-interactive.
@jwngr jwngr merged commit cff15e0 into master Oct 15, 2015
@jwngr jwngr deleted the mb-headless-progress branch October 15, 2015 22:53
@jwngr
Copy link

jwngr commented Oct 15, 2015

I tried this out locally and it worked great! Let's ship it!

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

Successfully merging this pull request may close these issues.

2 participants