MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / init

Function init

cli/src/ui.rs:16–19  ·  view source on GitHub ↗

Decide coloring once at startup.

(no_color_flag: bool)

Source from the content-addressed store, hash-verified

14
15/// Decide coloring once at startup.
16pub fn init(no_color_flag: bool) {
17 let off = no_color_flag || std::env::var_os("NO_COLOR").is_some() || !std::io::stdout().is_terminal();
18 PLAIN.store(off, Ordering::Relaxed);
19}
20
21fn plain() -> bool {
22 PLAIN.load(Ordering::Relaxed)

Callers 2

get_or_initMethod · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected