Skip to content

Add colors to console messages#324

Merged
joaomoreno merged 2 commits intomicrosoft:masterfrom
usernamehw:console_colors
Jan 16, 2019
Merged

Add colors to console messages#324
joaomoreno merged 2 commits intomicrosoft:masterfrom
usernamehw:console_colors

Conversation

@usernamehw
Copy link
Contributor

Fixes #323

Didn't test the message itself on macOS.

Also didn't test it in general since I don't know how.

Copy link
Member

@joaomoreno joaomoreno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We definitely don't want to do this if the output stream isn't a TTY.

I suggest to just depend on chalk or similar.

@usernamehw
Copy link
Contributor Author

Should I bring back Successfully word?

@joaomoreno
Copy link
Member

Nah, it's good without. 👍

@joaomoreno joaomoreno self-assigned this Jan 16, 2019
@joaomoreno joaomoreno added this to the December/January 2019 milestone Jan 16, 2019
@joaomoreno joaomoreno added the feature-request Request for new features or functionality label Jan 16, 2019
Copy link
Member

@joaomoreno joaomoreno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need @types/chalk:

npm WARN deprecated @types/[email protected]: This is a stub types definition for chalk (https://github.com/chalk/chalk). chalk provides its own type definitions, so you don't need @types/chalk installed!

I've also rewritten how the util looks like. I'd rather have functions we can call rather than consts we have to add to strings.

@joaomoreno joaomoreno merged commit a86fc10 into microsoft:master Jan 16, 2019
@joaomoreno
Copy link
Member

Thanks! 🍻

@usernamehw usernamehw deleted the console_colors branch January 16, 2019 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature-request Request for new features or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants