mirror of https://github.com/embarklabs/embark.git
Add on exit
This commit is contained in:
parent
8df718cf3c
commit
6dc9bdcfd2
|
@ -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