Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make all written text built-in styles so that their styles can be customized #111

Merged
merged 14 commits into from
Nov 26, 2024

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