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

Method eachAddonCommand

lib/models/project.js:497–504  ·  view source on GitHub ↗

Execute a given callback for every addon command. Example: ``` project.eachAddonCommand(function(addonName, commands) { console.log('Addon ' + addonName + ' exported the following commands:' + commands.keys().join(', ')); }); ``` @private @method eachAddonCommand

(callback)

Source from the content-addressed store, hash-verified

495 @param {Function} callback [description]
496 */
497 eachAddonCommand(callback) {
498 if (this.initializeAddons && this.addonCommands) {
499 this.initializeAddons();
500 let addonCommands = this.addonCommands();
501
502 forOwn(addonCommands, (commands, addonName) => callback(addonName, commands));
503 }
504 }
505
506 /**
507 Path to the blueprints for this project.

Callers 3

_printHelpFunction · 0.80
lookup-command.jsFile · 0.80
generateMethod · 0.80

Calls 3

initializeAddonsMethod · 0.95
addonCommandsMethod · 0.95
callbackFunction · 0.85

Tested by

no test coverage detected