Cargo Features

[dependencies]
should-color = { version = "0.5.2", default-features = false, features = ["clicolor", "clicolor_force", "no_color", "stream", "clap"] }
default = clicolor, clicolor_force, no_color, stream

These default features are set whenever should-color is added without default-features = false somewhere in the dependency tree.

clicolor default

Enables the detection of CLICOLOR via clicolor.

Affects should-color::CLICOLOR, should-color::clicolor

clicolor_force default

Enables the detection of CLICOLOR_FORCE via clicolor_force.

Affects should-color::CLICOLOR_FORCE, should-color::clicolor_force

no_color default

Enables the detection of NO_COLOR via no_color.

Affects should-color::NO_COLOR, should-color::no_color

stream default

Adds ColorChoice::for_stream.

Enables atty

clap

Adds clap_color and conversion of ColorChoice to and from clap::ColorChoice.

Enables clap ^3.2.20

Affects should-color::clap_color