Add on exit
This commit is contained in:
parent
8df718cf3c
commit
6dc9bdcfd2
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue