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

Method run

commands/make/command.ts:66–80  ·  view source on GitHub ↗

* Execute the command to create a new Ace command class. * Generates the command file with proper CLI command structure.

()

Source from the content-addressed store, hash-verified

64 * Generates the command file with proper CLI command structure.
65 */
66 async run() {
67 const codemods = await this.createCodemods()
68 codemods.overwriteExisting = this.force === true
69 await codemods.makeUsingStub(
70 stubsRoot,
71 this.stubPath,
72 {
73 flags: this.parsed.flags,
74 entity: this.app.generators.createEntity(this.name),
75 },
76 {
77 contentsFromFile: this.contentsFrom,
78 }
79 )
80 }
81}

Callers

nothing calls this directly

Calls 2

makeUsingStubMethod · 0.80
createCodemodsMethod · 0.45

Tested by

no test coverage detected