MCPcopy Create free account
hub / github.com/csskit/csskit / maybe_color

Function maybe_color

crates/csskit/src/commands/check.rs:315–317  ·  view source on GitHub ↗
(colors: bool, s: &str, f: F)

Source from the content-addressed store, hash-verified

313}
314
315fn maybe_color<F: Fn(&str) -> String>(colors: bool, s: &str, f: F) -> String {
316 if colors { f(s) } else { s.to_string() }
317}
318
319fn hint_no_input(sheet: &str, config: &GlobalConfig) {
320 let colors = config.colors();

Callers 2

hint_no_inputFunction · 0.85
hint_bad_sheetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected