Skip to content

feat: coloring prefixes#587

Open
y-nk wants to merge 2 commits intoopen-cli-tools:mainfrom
y-nk:julien/color-prefix
Open

feat: coloring prefixes#587
y-nk wants to merge 2 commits intoopen-cli-tools:mainfrom
y-nk:julien/color-prefix

Conversation

@y-nk
Copy link
Copy Markdown

@y-nk y-nk commented Apr 20, 2026

This closing #583 as @gustavohenke seemed to be interested. I've added tests as well and updated the readme. let me know if you need anything.

EDIT: 2nd commit addresses loss in code coverage

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 20, 2026

Coverage Status

coverage: 100.0%. remained the same — y-nk:julien/color-prefix into open-cli-tools:main

Normalization always appends {/color} if missing, so reaching the
idx === -1 fallback implies inColorRegion is false. Replacing the
dead ternary with a plain concat restores 100% branch coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants