`NO_COLOR` option required to suppress ANSI codes in file logging
- Dominant language
- Go
- Stars
- 9.6k
- Forks
- 954
- Avg merge
- 23h 27m
- Merged PRs (30d)
- 48
Description
**What would you like to be added**:
An option like `--no-color` where it disables all formatting, and can display messages without using bubbletea.
**Why is this needed**:
In settings with a dumb / no terminal. like in docker compose output, or in a script.
**Additional context**:
I looked into the code a bit, and was thinking that it could be added 2 ways.
The first would be to use the `verbose` flag, and print a log message when the bubble tea model gets updated. This would add functionality to the verbose flag, and wouldn't be that hard to implement. If it was combined with the `quiet` option, it would do something close enough to the goal
The other option would be to add a `no-color` flag. This would have to convert all bubble tea output to normal text output. This would probably be harder than the first option, but might be a more proper solution.
Contributor guide
Research direction
Start by tracing the verbose and quiet flags, the Bubble Tea model updates, and the file-logging output paths. Compare the proposed verbose behavior with a dedicated no-color option; done means Docker Compose and script output contains no ANSI formatting and can avoid Bubble Tea.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100