Skip to content

Add colored output with NO_COLOR support #66

@eljulians

Description

@eljulians

The CLI output is currently plain text everywhere. Adding some color would make it feel a lot more polished: green for success, red for errors, yellow for warnings, dimmed SHAs, bold entry names.

Would apply to status, validate, doctor, outdated, and anywhere else that has structured output.

Should respect the NO_COLOR standard (https://no-color.org/) and support a --color=never/auto/always flag. auto disables color when stdout is not a TTY (piped output, CI logs).

clap already pulls in anstream for colored help text, so there might not even be a new dependency needed. Otherwise owo-colors is lightweight and popular.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions