uv/crates/puffin
Zanie Blue 5db81c7caa
Add --color always|never|auto interface (#1049)
Extends #1048 interface providing a more general interface that I think
should be standard.

Allows forcing colors to be on _or_ off. e.g. `NO_COLOR=1 pip install
pip-tools --color always` would be colored.

Hides the `--no-color` option as it only exists for compatibility (and
seems better than throwing an error when people assume it will exist).

Has a nice side-effect of documenting our coloring behaviors e.g.

```
--color <COLOR>
    Control colors in output
    
    [default: auto]

    Possible values:
    - auto:   Enables colored output only when the output is going to a terminal or TTY with support
    - always: Enables colored output regardless of the detected environment
    - never:  Disables colored output
```
2024-01-22 23:01:36 -06:00
..
src Add --color always|never|auto interface (#1049) 2024-01-22 23:01:36 -06:00
tests Fix failing test cases (#1047) 2024-01-22 21:31:12 +00:00
Cargo.toml Enable PowerPC builds (#1017) 2024-01-19 17:29:11 -05:00