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

Add api features to console logs for extra results information #23

Merged
merged 3 commits into from
Feb 4, 2018

Conversation

jwu910
Copy link
Contributor

@jwu910 jwu910 commented Jan 19, 2018

Added js api features to the console log

Edit: Fixes #19

Copy link

@psyduc psyduc left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@rainrivas rainrivas left a comment

Choose a reason for hiding this comment

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

Magenta does not render on shells (ubuntu default, @psyduc to provide SS; and powershell, SS attached).
The '=' split color was removed

index.js Outdated
@@ -34,7 +41,11 @@ program
}
trimRes.forEach((result) => {
if (typeof (result.definition) !== undefined) {
console.log(chalk.bold.cyan('=======================\n') + result.definition);
console.log('Word: ' + chalk.magenta(result.word));
Copy link
Contributor

Choose a reason for hiding this comment

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

Magenta doesn't work on my powershell @jwu910

Copy link
Contributor

Choose a reason for hiding this comment

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

image

Copy link
Contributor

Choose a reason for hiding this comment

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

FYI highlighting does not help
image

Copy link

Choose a reason for hiding this comment

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

screenshot from 2018-01-21 22-43-27

index.js Outdated
@@ -24,6 +28,9 @@ program
if (err) throw new Error(err);
var trimRes;
var results = JSON.parse(body).list;

console.log('='.repeat(consoleWidth()));
Copy link
Contributor

Choose a reason for hiding this comment

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

We removed cyan from our split, was this on purpose?

psyduc and others added 2 commits February 2, 2018 23:52
* Adding a shade of magenta to the font color and making it bold.

* remove the option for additional results to display

* Change magenta variable to FONT_COLOR and fix the corresponding variables with it.
Removed the parenthesis around results.word
@rainrivas
Copy link
Contributor

@jwu910 if you cool with the color you can merge this to dev

@jwu910 jwu910 merged commit 83bf8fd into development Feb 4, 2018
@jwu910 jwu910 deleted the slng-19-js-features-api branch February 4, 2018 08:57
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