Skip to content

Change has_color_for to public visibility#92

Merged
sharkdp merged 2 commits intosharkdp:masterfrom
bkueng:pub_has_color_for
Oct 19, 2025
Merged

Change has_color_for to public visibility#92
sharkdp merged 2 commits intosharkdp:masterfrom
bkueng:pub_has_color_for

Conversation

@bkueng
Copy link
Copy Markdown
Contributor

@bkueng bkueng commented Sep 11, 2025

coreutils uses style_for_indicator to check if a style for Indicator::Capabilities is available. However, style_for_indicator uses fallbacks and can therefore return a style even if no direct style for Indicator::Capabilities is set.

Directly being able to use has_color_for allows to fix that.

Comment thread src/lib.rs Outdated
…xplicit_syle_for

coreutils (https://github.com/uutils/coreutils) uses style_for_indicator
to check if a style for Indicator::Capabilities is available.
However, style_for_indicator uses fallbacks and can therefore return a
style even if no direct style for Indicator::Capabilities is set.

Directly being able to use has_color_for allows to fix that.
@sharkdp sharkdp merged commit 02e461e into sharkdp:master Oct 19, 2025
48 checks passed
@sharkdp
Copy link
Copy Markdown
Owner

sharkdp commented Oct 19, 2025

Thank you

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.

3 participants