Skip to content

Conversation

@kodie
Copy link
Contributor

@kodie kodie commented Nov 25, 2024

This makes it to where all text (for example help and prompts) can have their styles customized just as easy as it is to define a new custom style:

\Ahc\Cli\Output\Color::style('error', ['fg' => Ahc\Cli\Output\Color::BLUE]);
\Ahc\Cli\Output\Color::style('choice', ['fg' => Ahc\Cli\Output\Color::GREEN]);

Fixes #114

@dimtrovich
Copy link
Contributor

well done @kodie . I've been meaning to look into this subject for a while now. I like this implementation. Nice work, thanks.

@adhocore adhocore merged commit 2bd83f4 into adhocore:main Nov 26, 2024
6 checks passed
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.

Custom styles can not have style modifiers set in any order as advertised

3 participants