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

Added chalk for pretty output colors #21

Merged
merged 3 commits into from
Nov 29, 2017
Merged

Added chalk for pretty output colors #21

merged 3 commits into from
Nov 29, 2017

Conversation

JoshuaKGoldberg
Copy link
Contributor

Fixed #18.

Might want to be verified by someone on a *nix machine that it isn't atrocious there... but it's through chalk so I doubt it.

image

@parshap
Copy link
Owner

parshap commented Nov 29, 2017

The grey colors don't work well for me sshed into Ubuntu via Putty using the Solarized color scheme:

image

Maybe just stick to white/red/bold.

console.log("Error: Wanted " + name + " version " + raw + " (" + range +")");
console.log(PROGRAMS[name].getInstallInstructions(raw));
console.error(chalk.red.bold("Error: Wanted " + name + " version " + raw + " (" + range +")"));
console.log(chalk.red.bold(PROGRAMS[name].getInstallInstructions(raw)));
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe just the error message should be red and the installation instructions could be normal color? Or are you thinking more red to grab attention?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking more red to grab attention. Otherwise it felt like "info" text along with the rest of the display.

Copy link
Owner

Choose a reason for hiding this comment

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

Sounds good to me! Thanks for adding this.

@parshap
Copy link
Owner

parshap commented Nov 29, 2017

Looks good now!

image

@parshap parshap merged commit d3d95f3 into parshap:master Nov 29, 2017
@JoshuaKGoldberg JoshuaKGoldberg deleted the chalk branch November 29, 2017 07:30
@parshap
Copy link
Owner

parshap commented Nov 29, 2017

Published as v3.1.0.

@paulmelnikow
Copy link
Contributor

This looks really nice!

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

Successfully merging this pull request may close these issues.

3 participants