-
Notifications
You must be signed in to change notification settings - Fork 451
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
Provide more details in dot api #850
Conversation
lib/repl/repl.js
Outdated
@@ -266,7 +266,24 @@ function displayUsageFor(name) { | |||
return; | |||
} | |||
console.log(); | |||
if (e.deprecated) { | |||
console.log(`DEPRECATED ${desc(e.deprecated)}`); | |||
console.log(); |
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.
Any specific reason for empty console.log
?
If it is just to achieve a new line, consider using '\n'. If worried about os specific new lines consider using require('os').EOL
.
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.
I was reusing what was previously in place. EOL
is a better fit as suggested.
lib/repl/repl.js
Outdated
e.returns.map(e => { | ||
console.log(`Returns: ${type(e.type)} ${(e.description.type ? desc(e.description) : e.description)}`); | ||
}) | ||
console.log(); |
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.
Empty console.log
?
@BugDiver There seems to be a lot of files not linted properly, running |
I guess that would be better. |
@BugDiver @M4rk9696 There is a pre-commit hook that does linting. https://github.com/getgauge/taiko/blob/master/package.json#L30-L33 |
@saikrishna321 I think it is better to have a lint stage in CI as well, as a hook can be skipped. |
Provide more details in dot api