feat(cli): color --help output mirroring forgejo-cli's scheme #86
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/YTCLI-32-color-help-output"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a HELP_STYLES Styles const to crates/yt-cli/src/cli.rs matching fj's palette (header/usage Cyan+bold, literal Green, placeholder unstyled, error Red+bold, invalid Red, valid Green) and set styles = HELP_STYLES on the root Cli #[command(...)]. clap propagates the root styles to every subcommand's help, so no per-subcommand attribute is needed. The color feature is already on via clap's defaults (the ["derive", "env"] list keeps default-features), so no Cargo.toml change. ColorChoice::Auto suppresses ANSI for non-TTY stdout and when NO_COLOR is set.
#YTCLI-32