Description
Currently kurl always outputs with syntax highlighting and colors. Users piping output to files or using terminals without color support need a way to disable colors globally.
Proposed Implementation
kurl https://api.example.com --no-color
Also respect the NO_COLOR environment variable (https://no-color.org/).
Why this matters
Color codes break when piping to less, grep, or saving to files. Standard CLI tools support --no-color or NO_COLOR.
Acceptance Criteria
Getting Started
Look at the formatter/color package. The colorization logic likely wraps fmt.Printf or uses a color library. Add a global toggle that returns plain strings when disabled.
Description
Currently kurl always outputs with syntax highlighting and colors. Users piping output to files or using terminals without color support need a way to disable colors globally.
Proposed Implementation
Also respect the
NO_COLORenvironment variable (https://no-color.org/).Why this matters
Color codes break when piping to
less,grep, or saving to files. Standard CLI tools support--no-colororNO_COLOR.Acceptance Criteria
--no-colorCLI flagNO_COLORenvironment variableGetting Started
Look at the formatter/color package. The colorization logic likely wraps
fmt.Printfor uses a color library. Add a global toggle that returns plain strings when disabled.