Closed sarus closed 8 years ago
Dude you confused the hell out of me for about 2 seconds with your avatar...
Haha nice.
Related:
https://github.com/dthree/vorpal/issues/55 https://github.com/dthree/vorpal/issues/44 https://github.com/dthree/vorpal/issues/42 https://github.com/dthree/vorpal/issues/45
This is apparently the issue of the day.
@dthree haha. I was super confused when I first came across this repo as well. You have good taste though.
Haha - as you do. Even our positioning is the same...
Fixed!! v1.5.2
.
I'm running some async init code before I show vorpal and so ctrl-c twice no longer exits vorpal as I'm stuck in my callback. The idea here is that I only want to run vorpal if I can successfully connect to a database since all the vorpal commands are db related.
Is there an event or callback I can listen for to know when vorpal exists? Right now hitting ctrl-c appears to be stopping vorpal but Node is sitting in my callback waiting for something. I realize I might also have this setup wrong.
If I add the following:
Then I can get my program to quit if I hti ctrl-c three times. Otherwise I have to
kill -9
it.Thanks!