| 1 | use anstyle::*; | 
| 2 |  | 
|---|
| 3 | pub const NOP: Style = Style::new(); | 
|---|
| 4 | pub const HEADER: Style = AnsiColor::Green.on_default().effects(Effects::BOLD); | 
|---|
| 5 | pub const USAGE: Style = AnsiColor::Green.on_default().effects(Effects::BOLD); | 
|---|
| 6 | pub const LITERAL: Style = AnsiColor::Cyan.on_default().effects(Effects::BOLD); | 
|---|
| 7 | pub const PLACEHOLDER: Style = AnsiColor::Cyan.on_default(); | 
|---|
| 8 | pub const ERROR: Style = AnsiColor::Red.on_default().effects(Effects::BOLD); | 
|---|
| 9 | pub const WARN: Style = AnsiColor::Yellow.on_default().effects(Effects::BOLD); | 
|---|
| 10 | pub const NOTE: Style = AnsiColor::Cyan.on_default().effects(Effects::BOLD); | 
|---|
| 11 | pub const GOOD: Style = AnsiColor::Green.on_default().effects(Effects::BOLD); | 
|---|
| 12 | pub const VALID: Style = AnsiColor::Cyan.on_default().effects(Effects::BOLD); | 
|---|
| 13 | pub const INVALID: Style = AnsiColor::Yellow.on_default().effects(Effects::BOLD); | 
|---|
| 14 |  | 
|---|
| 15 | #[ cfg(feature = "clap")] | 
|---|
| 16 | pub const CLAP_STYLING: clap::builder::styling::Styles = clap::builder::styling::Styles::styled() | 
|---|
| 17 | .header(HEADER) | 
|---|
| 18 | .usage(USAGE) | 
|---|
| 19 | .literal(LITERAL) | 
|---|
| 20 | .placeholder(PLACEHOLDER) | 
|---|
| 21 | .error(ERROR) | 
|---|
| 22 | .valid(VALID) | 
|---|
| 23 | .invalid(INVALID); | 
|---|
| 24 |  | 
|---|