should-color
Determine whether output should use colors or not.
The should-color crate helps determine the color choice for an application output based on the command line arguments and environment variables.
The resulting color choice is determined by taking into account, in order of priority from higher to lower, the following settings:
CLICOLOR_FORCEenvironment variable (requiresclicolor_forcefeature),- explicit user preference (for instance command line arguments),
CLICOLORenvironment variable (requiresclicolorfeature),NO_COLORenvironment variable (requiresno_colorfeature),- application default choice.
Please refer to the documentation for more details on the resolution process.