brandonchinn178 / brandonchinn178/hooky

Allow disabling color

Open
#30 0 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Haskell
Stars
29
Forks
2
Avg merge
4h 37m
Merged PRs (30d)
4

Description

Support `--color=auto/always/never`, where `auto` is the default.

If auto:
* if `$NO_COLOR` is set, `never` ([ref](https://no-color.org/))
* if `$CI` is set, `always`
* if not `hSupportsANSI`, `never`
* otherwise, `always`

To ensure we catch everything, probably add a global `IORef` in `Term.hs`, set it in `Main.hs`, and in the color functions, check this value

Contributor guide

Open the contributing guide

Research direction

Start by reading Main.hs, Term.hs, and the existing color functions to trace how command-line options and terminal color output are handled. Implement the specified --color modes and auto-selection rules, then verify that all color output respects the selected mode and that auto remains the default.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.