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

Introduce a new drush_colorize_output() function, to help consistently add color to output text. #220

Closed
klonos opened this issue Apr 11, 2020 · 2 comments

Comments

@klonos
Copy link
Member

klonos commented Apr 11, 2020

This came up in #218:

...perhaps we should introduce a drush_colorize_output($output, $color) function to be re-used in other places?

@serundeputy
Copy link
Member

thanks @klonos !
PR: #221

Added a drush_chalk(string $output, string $color) to format pieces of output strings.

I went with drush_chalk because it is not just color it can make text bold and anything you can do with trerminal formatting.

Here is an example:

image

serundeputy added a commit that referenced this issue Apr 11, 2020
@serundeputy
Copy link
Member

Merged. this will ship w/ 1.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants