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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃帹 Allow configuring consola to auto colorize the according to type #299

Open
1 task
jd-solanki opened this issue May 24, 2024 · 1 comment
Open
1 task
Labels
enhancement New feature or request

Comments

@jd-solanki
Copy link

jd-solanki commented May 24, 2024

Describe the feature

Hi 馃憢馃徎

I'm using consola in all of my project and in few of them I've to colorize the output text along with the type. For example with consola.info we'll get output like below:

image
consola.info('馃殌 Utils loaded')

However, I want to colorize it like below when I use info:
image

(I've to write like this everywhere: consola.info(colorize('cyan', '馃殌 Utils loaded')))

This will be same for error, warn, success, etc

Additional information

  • Would you be willing to help implement this feature?
@jd-solanki jd-solanki changed the title allow configuring consola to auto colorize the according to type 馃帹 Allow configuring consola to auto colorize the according to type May 24, 2024
@pi0 pi0 added the enhancement New feature or request label Jun 8, 2024
@pi0
Copy link
Member

pi0 commented Jun 8, 2024

Good idea. We can allow this opt-in per type (pr welcome)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants