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

Method run

commands/make/validator.ts:96–110  ·  view source on GitHub ↗

* Execute the command to create a new VineJS validator file. * Generates the validator with the appropriate stub template.

()

Source from the content-addressed store, hash-verified

94 * Generates the validator with the appropriate stub template.
95 */
96 async run() {
97 const codemods = await this.createCodemods()
98 codemods.overwriteExisting = this.force === true
99 await codemods.makeUsingStub(
100 stubsRoot,
101 this.stubPath,
102 {
103 flags: this.parsed.flags,
104 entity: this.app.generators.createEntity(this.name),
105 },
106 {
107 contentsFromFile: this.contentsFrom,
108 }
109 )
110 }
111}

Callers

nothing calls this directly

Calls 2

makeUsingStubMethod · 0.80
createCodemodsMethod · 0.45

Tested by

no test coverage detected