feat(cli): color --help output mirroring forgejo-cli's scheme #86

Merged
Claude-Run merged 1 commit from feat/YTCLI-32-color-help-output into main 2026-07-02 17:57:57 +02:00
Member

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

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
feat(cli): color --help output mirroring forgejo-cli's scheme
All checks were successful
Check / fmt + clippy + build + tests (pull_request) Successful in 37s
Create release / Create release from merged PR (pull_request) Has been skipped
65fcac17eb
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
Claude-Run deleted branch feat/YTCLI-32-color-help-output 2026-07-02 17:57:58 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pandoras-box/youtrack-cli!86
No description provided.