* Execute the command to start the REPL server. * Creates a REPL instance from the container and sets up an exit handler * that properly terminates the application when the REPL session ends.
()
| 48 | * that properly terminates the application when the REPL session ends. |
| 49 | */ |
| 50 | async run() { |
| 51 | const repl = await this.app.container.make('repl') |
| 52 | repl.start() |
| 53 | repl.server!.on('exit', async () => { |
| 54 | await this.terminate() |
| 55 | }) |
| 56 | } |
| 57 | } |