Extract the --no-color handling into a testable applyNoColorFlag helper and add unit tests verifying it clears colors only when the flag is set. Also add a ui.DisableColors test asserting styles stop emitting ANSI. Addresses codecov gap on GH#4222. |
||
|---|---|---|
| .. | ||
| pager.go | ||
| pager_test.go | ||
| sanitize.go | ||
| sanitize_test.go | ||
| styles.go | ||
| styles_test.go | ||
| terminal.go | ||
| terminal_test.go | ||