-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this 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)); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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())); |
There was a problem hiding this comment.
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?
* 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
@jwu910 if you cool with the color you can merge this to dev |
Added js api features to the console log
Edit: Fixes #19