infinitered / gluegun

A delightful toolkit for building TypeScript-powered command-line apps.
MIT License
2.95k stars 147 forks source link

Add new methods to toolbox.print (highlight and muted) (Fixes #726) #731

Closed kathawala closed 3 years ago

kathawala commented 3 years ago

A few of the colors in toolbox.print.colors are left out of the docs and also don't have any print function associated to them:

This PR adds documentation about those colors and adds functions for them so one can do

toolbox.print.highlight('important text')

the same way it's currently possible to do

toolbox.print.success('important text')

This was asked for in #726 and I myself wrote a quick utility to help print those functions, so I thought it might be worth adding those function here directly.

infinitered-circleci commented 3 years ago

:tada: This PR is included in version 4.6.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: