MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / findCommand

Function findCommand

lib/cli/lookup-command.js:14–25  ·  view source on GitHub ↗
(commands, commandName)

Source from the content-addressed store, hash-verified

12 }
13
14 function findCommand(commands, commandName) {
15 for (let key in commands) {
16 let command = commands[key];
17
18 let name = command.prototype.name;
19 let aliases = command.prototype.aliases || [];
20
21 if (name === commandName || aliases.some(aliasMatches)) {
22 return command;
23 }
24 }
25 }
26
27 // Attempt to find command in ember-cli core commands
28 let command = findCommand(commands, commandName);

Callers 1

lookup-command.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…