Add on exit
This commit is contained in:
parent
ffd483b7e6
commit
147292d8f0
|
@ -6,10 +6,14 @@ class REPL {
|
|||
}
|
||||
|
||||
start(done) {
|
||||
repl.start({
|
||||
let replServer = repl.start({
|
||||
prompt: "Embark (" + this.env + ") > "
|
||||
});
|
||||
|
||||
replServer.on('exit', () => {
|
||||
process.exit();
|
||||
});
|
||||
|
||||
done();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue