Function crosstermion::color::allowed
source · pub fn allowed() -> bool
Expand description
Return true if we should colorize the output, based on clicolors spec and no-color spec
Note that you should also validate that the output stream is actually connected to a terminal, which usually looks like `atty::is(atty::Stream::Stdout) && should_colorize()