Feature request: NO_COLOR standard implementation
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.2k
- Forks
- 510
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
it would be great implement the NO_COLOR standard on **lsd** since there's many CLI already with it and save the users from use "color=never", "--monochrome-color" or whatever.
```
Command-line software which adds ANSI color to its output by default should check
for a NO_COLOR environment variable that, when present and not an empty string
(regardless of its value), prevents the addition of ANSI color.
By adopting this standard, users that prefer to have plain, non-colored text output
can export NO_COLOR=1 to their shell’s environment and automatically disable color
by default in all supported software.
If your software outputs color by default, please consider not doing so.
More info on: `https://no-color.org/`
```
Cheers
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the NO_COLOR specification linked in the issue and tracing lsd's existing color-option handling. Implement the standard behavior so a present, non-empty NO_COLOR variable disables ANSI color output, then verify that existing color controls still work and that NO_COLOR=1 produces plain output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100