[][src]Function crosstermion::color::allowed

pub fn allowed() -> bool

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()