MCPcopy
hub / github.com/adonisjs/core / run

Method run

commands/repl.ts:50–56  ·  view source on GitHub ↗

* 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.

()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 3

makeMethod · 0.80
startMethod · 0.45
terminateMethod · 0.45

Tested by

no test coverage detected