Skip to content

Implement no-color option#992

Merged
zhenchaoni merged 1 commit into
mainfrom
private/zhenni/no-color
Jun 29, 2026
Merged

Implement no-color option#992
zhenchaoni merged 1 commit into
mainfrom
private/zhenni/no-color

Conversation

@zhenchaoni

Copy link
Copy Markdown
Member

Fix #567

Add --no-color flag for color-free output

--no-color is a common accessibility option in CLI tools such as git. It lets users disable ANSI color codes for a single invocation so output renders plainly — useful for older consoles, log viewers, screen readers, and piped output.

This PR adds --no-color support to winml CLI. The flag is available on the root winml command and on every subcommand, and it disables colored output for the current process only (the next invocation is colored again). NO_COLOR=1 and CI=true environment variables continue to disable color as before.

Usage:

winml sys --no-color

@zhenchaoni zhenchaoni requested a review from a team as a code owner June 29, 2026 05:52
@xieofxie

Copy link
Copy Markdown
Contributor

cool

@zhenchaoni zhenchaoni merged commit ce7c383 into main Jun 29, 2026
9 checks passed
@zhenchaoni zhenchaoni deleted the private/zhenni/no-color branch June 29, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[cross-cutting] [P2] No --no-color flag (NO_COLOR works only via Rich's tty auto-detection)

2 participants