Add on exit

This commit is contained in:
Anthony Laibe 2018-07-23 13:41:13 +01:00 committed by Iuri Matias
parent ffd483b7e6
commit 147292d8f0
1 changed files with 5 additions and 1 deletions

View File

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