-
-
Notifications
You must be signed in to change notification settings - Fork 44
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: Always use the plain formatter even when the output is not a terminal #83
Conversation
Thanks @asmeurer! This LGTM.
This shouldn't be an issue, since we use |
To be clear, I was testing out piping the output to |
Huh, that's interesting -- for me locally, they get filtered when I pipe to For context, I tried with both |
I ran |
Weird. I'm at a loss to explain that -- I ran the following:
and opened This might be a host OS thing. Are you on Windows? |
I am on a Mac. |
Okay, me too. I'm stumped then 🙂 |
FWIW, I ran:
And got plain output, no json or colors. |
Fixes #76
I was also looking at whether color support should be modified when the terminal isn't a tty. I think this can be done by enabling supports-colors in owo_colors, although I'm not really a Rust dev and I couldn't quite figure out how to get this working right https://docs.rs/owo-colors/4.1.0/owo_colors/index.html#only-style-on-supported-terminals