backdrop-contrib / backdrop-drush-extension

A set of commands and boot class for Drush and Backdrop CMS.
GNU General Public License v2.0
13 stars 18 forks source link

Pretty terminal font colors for `drush cset` #218

Closed klonos closed 4 years ago

klonos commented 4 years ago

I have a script that sets up my local when working on Backdrop issues. At the very end of it, I have a series of drush cset commands, and the way they are being output on the terminal (white font on black) makes it hard to distinguish which settings have been set to what values:

Screen Shot 2020-04-10 at 6 51 34 am

I thought that we should either be wrapping those in single/double quotes or any other character, but then noticed the beautiful light cyan on black text produced by lando, and I thought better something like that instead.

klonos commented 4 years ago

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

serundeputy commented 4 years ago

I like it just need some time to pull it down and test it.

serundeputy commented 4 years ago

@klonos thanks this is great!

I changed the color from 96m to 32m as that is what is used elsewhere in backdrop-drush-extension, which lends itself to the idea of drush_colorize_output being a good one, i'd ask you to open a feature request for that.

klonos commented 4 years ago

Done: #220

klonos commented 4 years ago

Screen Shot 2020-04-11 at 8 33 42 am