-
Notifications
You must be signed in to change notification settings - Fork 6
added 'q' to quit prompt #5
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
Conversation
@@ -20,10 +20,10 @@ if (opts.indexOf('-h') > -1) { | |||
gitBc.on('success', log.success); | |||
|
|||
// Exits program execution on ESC keypress | |||
process.stdin.on('keypress', function (ch, key) { | |||
if (key && key.name === 'escape') { | |||
process.stdin.on('keypress', function(ch, key) { |
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.
oh, this line got changed for no reason at all 😞 plus it breaks my standard of always having a space between function
declaration and parenthesis :)
other than that 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.
Yeah, my bad for the space, also I was looking for autocomplete and thought if was more readable if we added multiples functions like autocomplete searches after to just separate on 2 lines the key verification but as this commit is only to add the Q key, i removed them 👍
7e37122
to
67f2d46
Compare
process.exit(); | ||
} | ||
}); | ||
} | ||
|
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.
now my EOL is gone! 😨 LOL
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.
EOL back
🎊 many thanks @zeachco 😃 |
maybe having "q" to exit feel more intuitive being in git prompt?