Skip to content

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

Merged
adhocore merged 14 commits into
adhocore:mainfrom
kodie:kodie/allow-custom-help-colors
Nov 26, 2024
Merged

adhocore merged 14 commits into
adhocore:mainfrom
kodie:kodie/allow-custom-help-colors

Conversation

@kodie

@kodie kodie commented Nov 25, 2024

Copy link
Copy Markdown
Contributor

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

Comment thread src/Output/Color.php
Comment thread src/Output/Color.php
Comment thread src/Output/Color.php
Comment thread src/Input/Command.php
@dimtrovich

Copy link
Copy Markdown
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
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