Add on exit

This commit is contained in:
Anthony Laibe 2018-07-23 13:41:13 +01:00 committed by Iuri Matias
parent 72708bcf2d
commit 559eb0636e

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();
}
}