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

fix(spinner): direct spinner to stderr instead of stdout #1

Merged
merged 1 commit into from
Nov 14, 2018
Merged

Conversation

b5
Copy link
Member

@b5 b5 commented Nov 14, 2018

otherwise weird spinner output is printed to stuff that get's piped from the command line

otherwise weird spinner output is printed to stuff that get's piped from the command line
@b5 b5 self-assigned this Nov 14, 2018
@b5 b5 requested a review from dustmop November 14, 2018 02:23
@b5 b5 added the fix label Nov 14, 2018
@b5 b5 requested a review from ramfox November 14, 2018 02:23
Copy link

@dustmop dustmop left a comment

Choose a reason for hiding this comment

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

Using stderr instead of stdout is an improvement, but not the ideal solution. We should instead detect the type of pipe, and only output if we know we're writing to a tty or whatever. Doing so is OS specific, however. Could you add a TODO like "//TODO: Detect output pipe and only write spinner if it's a tty"

@b5
Copy link
Member Author

b5 commented Nov 14, 2018

Did you one better and opened an issue 😄

@b5 b5 merged commit af64259 into master Nov 14, 2018
@b5 b5 deleted the pipe branch November 14, 2018 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants