Add on exit

This commit is contained in:
Anthony Laibe 2018-07-23 13:41:13 +01:00 committed by Pascal Precht
parent 8df718cf3c
commit 6dc9bdcfd2
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 5 additions and 1 deletions

View File

@ -6,10 +6,14 @@ class REPL {
} }
start(done) { start(done) {
repl.start({ let replServer = repl.start({
prompt: "Embark (" + this.env + ") > " prompt: "Embark (" + this.env + ") > "
}); });
replServer.on('exit', () => {
process.exit();
});
done(); done();
} }
} }