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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

--no-colors does not disable all colorized output #581

Open
scop opened this issue Nov 17, 2023 · 3 comments
Open

--no-colors does not disable all colorized output #581

scop opened this issue Nov 17, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@scop
Copy link
Contributor

scop commented Nov 17, 2023

馃敡 Summary

Per the subject.

Lefthook version

1.5.2

Steps to reproduce

lefthook --no-colors run pre-commit --all-files

Expected results

No colors in output, just the configured terminal colors.

Actual results

Some colors remain, e.g. in the lefthook icon and the last summary line status icon.

Possible Solution

Logs / Screenshots

Screenshot from 2023-11-17 18-20-50

@scop scop added the bug Something isn't working label Nov 17, 2023
@mrexox
Copy link
Member

mrexox commented Nov 20, 2023

Hey! --no-colors option wasn't supposed to disable icons 馃 Do you disagree?

@scop
Copy link
Contributor Author

scop commented Nov 20, 2023

It is currently documented as "disable colored output", so I thought it'd apply to all colors, no matter the implementation detail whether that's marked up or part of an icon.

With the current description I'd say this is a bug, but the fix might be to fix the description, for example "disable colored text output".

Then again, I don't know if there's a deeper reasoning why colors are disabled, and if it's about colors or some escape sequences that might not work nicely everywhere. But if it's about colors in particular, then I'd think colors should be disabled no matter where they come from.

Not a biggie at all though, just a bit surprising.

@sanmai-NL
Copy link
Contributor

@mrexox The text is also colored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants