(commands, commandName)
| 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); |
no outgoing calls
no test coverage detected
searching dependent graphs…