Hello and thank you for your time.
Description:
a set of opening and closing {color} + {/color} markers for the --prefix option
Use Case:
I'm building a cli where i'd like only the name of the process to be colored, not the full prefix.
Assumption:
It should be quite easy to integrate. Refactoring would involve to:
- prefixing "prefix" string with
{color} if opening marker not found
- suffixing "prefix" string with
{/color} if closing marker not found
- have coloring applied starting on
{color} until {/color}
these 3 things would make this new feature backward compatible (combination of 1 & 2 would color the whole string) and allow branching out for more customisation!
Contribution
If you're agreeing with this plan I can draft a PR for it.
Screenshots
Wanted:
Currently:
Hello and thank you for your time.
Description:
a set of opening and closing
{color}+{/color}markers for the--prefixoptionUse Case:
I'm building a cli where i'd like only the name of the process to be colored, not the full prefix.
Assumption:
It should be quite easy to integrate. Refactoring would involve to:
{color}if opening marker not found{/color}if closing marker not found{color}until{/color}these 3 things would make this new feature backward compatible (combination of 1 & 2 would color the whole string) and allow branching out for more customisation!
Contribution
If you're agreeing with this plan I can draft a PR for it.
Screenshots
Wanted:
Currently: