Skip to content

Commit 4586dcf

Browse files
committed
Shorten CLI NO_COLOR changeset to one sentence
1 parent 6ac36a0 commit 4586dcf

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎.changeset/cli-prompt-no-color.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@
33
---
44

55
Respect `NO_COLOR` in CLI prompts and the command wizard, suppressing color and style escapes while preserving cursor and redraw controls.
6-
7-
`Prompt.Theme` gains a `colors` field. `Prompt.makeTheme` detects it with the same rule as `CliOutput.defaultFormatter` (stdout is a TTY and `NO_COLOR` is unset or empty) unless `colors` is provided. Override it for every prompt with a `Prompt.Theme` layer, or for one prompt with `theme: { colors: false }`. The command wizard reads `colors` from `Prompt.Theme`, so providing `CliOutput.defaultFormatter({ colors: false })` alone does not disable wizard styling.
8-
9-
The default `Prompt.Theme` is created the first time it is read, so color detection runs once per process. Changing `NO_COLOR` after the first prompt does not affect the default theme.

0 commit comments

Comments
 (0)