MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / should_colorize

Method should_colorize

atomic-cli/src/output/colors.rs:57–63  ·  view source on GitHub ↗

Check if colors should be used based on this mode.

(&self)

Source from the content-addressed store, hash-verified

55impl ColorMode {
56 /// Check if colors should be used based on this mode.
57 pub fn should_colorize(&self) -> bool {
58 match self {
59 Self::Auto => console::colors_enabled(),
60 Self::Always => true,
61 Self::Never => false,
62 }
63 }
64}
65
66impl std::fmt::Display for ColorMode {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected