Skip to content

feat: coloring prefixes#587

Merged
gustavohenke merged 4 commits into
open-cli-tools:mainfrom
y-nk:julien/color-prefix
May 19, 2026
Merged

feat: coloring prefixes#587
gustavohenke merged 4 commits into
open-cli-tools:mainfrom
y-nk:julien/color-prefix

Conversation

@y-nk
Copy link
Copy Markdown
Contributor

@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: 98.85% (+0.03%) from 98.823% — 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.
Copy link
Copy Markdown
Member

@gustavohenke gustavohenke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please also expand the docs under docs/cli/prefixing.md? 🙏

@y-nk
Copy link
Copy Markdown
Contributor Author

y-nk commented May 18, 2026

@gustavohenke done !

@y-nk y-nk requested a review from gustavohenke May 18, 2026 06:17
Copy link
Copy Markdown
Member

@gustavohenke gustavohenke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@gustavohenke gustavohenke merged commit 0e50ac3 into open-cli-tools:main May 19, 2026
21 checks passed
@gustavohenke gustavohenke linked an issue May 19, 2026 that may be closed by this pull request
@y-nk
Copy link
Copy Markdown
Contributor Author

y-nk commented May 19, 2026

yay \o/

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.

prefix color manually

3 participants