15 releases
0.1.0 | Mar 8, 2023 |
---|---|
0.0.13 | Nov 24, 2022 |
0.0.10 | Mar 23, 2022 |
0.0.7 | Dec 31, 2021 |
0.0.6 | Oct 6, 2021 |
#14 in #cli-color
3,201 downloads per month
Used in 10 crates
26KB
366 lines
concolor-clap
Convenience helper for working with
clap
Contribute
License
Dual-licensed under MIT or Apache 2.0
lib.rs
:
Mixin a clap argument for colored output selection
Examples
// ...
#[derive(Debug, clap::Parser)]
#[clap(color = concolor_clap::color_choice())]
struct Cli {
#[command(flatten)]
color: concolor_clap::Color,
}
Features
auto
(default): Automatically detect color support
Dependencies
~1.1–1.7MB
~33K SLoC