Crates.io | should-color |
lib.rs | should-color |
version | 0.5.2 |
source | src |
created_at | 2022-09-05 09:57:18.392492 |
updated_at | 2022-09-22 12:21:45.08077 |
description | Determine whether output should use colors or not. |
homepage | |
repository | https://github.com/FedericoStra/should-color |
max_upload_size | |
id | 658728 |
size | 38,145 |
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.