mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-23 03:59:18 +00:00
22 lines
313 B
JavaScript
22 lines
313 B
JavaScript
const repl = require("repl");
|
|
|
|
class REPL {
|
|
constructor(options) {
|
|
this.env = options.env;
|
|
}
|
|
|
|
start(done) {
|
|
let replServer = repl.start({
|
|
prompt: "Embark (" + this.env + ") > "
|
|
});
|
|
|
|
replServer.on('exit', () => {
|
|
process.exit();
|
|
});
|
|
|
|
done();
|
|
}
|
|
}
|
|
|
|
module.exports = REPL;
|