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_FORCE
] environment variable (requires clicolor_force
feature),CLICOLOR
] environment variable (requires clicolor
feature),NO_COLOR
] environment variable (requires no_color
feature),Please refer to the documentation for more details on the resolution process.