Expand description

Mixin a clap argument for colored output selection

Examples

// ...
#[derive(Debug, clap::Parser)]
#[clap(color = concolor_clap::color_choice())]
struct Cli {
    #[clap(flatten)]
    color: concolor_clap::Color,
}

Features

  • auto (default): Automatically detect color support

Structs

Mixin a clap argument for colored output selection

Enums

Argument value for when to color output

Functions

Get color choice for initializing the clap::App