MCPcopy Create free account
hub / github.com/webpack/webpack-cli / #findCommandByName

Method #findCommandByName

packages/webpack-cli/src/webpack-cli.ts:2470–2474  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

2468 }
2469
2470 #findCommandByName(name: string) {
2471 return this.program.commands.find(
2472 (command) => name === command.name() || command.aliases().includes(name),
2473 );
2474 }
2475
2476 async #loadCommandByName(commandName: string): Promise<Command | undefined> {
2477 if (this.#isCommand(commandName, this.#commands.build)) {

Callers 2

#outputHelpMethod · 0.95
runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected