Printable idea sheet
diff_cli_color
reqlan rq/cli/diff.rq:104
Katz 0.061
Color the human text when stdout is a terminal and `NO_COLOR` is unset.
`--color` forces color. `--no-color` forces plain text. `--json` is never colored.
Created and added lines are green. Deleted and removed lines are red. Modified is yellow. Moved is cyan.
- implementation
- format-diff.ts, diff.ts
- status
- done
- tests
- diff.test.ts:color is opt-in when stdout is not a terminal
Interactive page: diff_cli_color