lib/definitions/aggregate.js
function (name) {
    if (!name || !_.isString(name)) {
      var err = new Error('Please pass a valid string as name!');
      debug(err);
      throw err;
    }

    return _.filter(this.commands, function (cmd) {
      return cmd.name === name;
    });
  }
function (name) {
    if (!name || !_.isString(name)) {
      var err = new Error('Please pass a valid string as name!');
      debug(err);
      throw err;
    }

    return _.filter(this.commands, function (cmd) {
      return cmd.name === name;
    });
  }
function ( name ) { if ( ! name || ! _ . isString ( name ) ) { var err = new Error ( 'Please pass a valid string as name!' ) ; debug ( err ) ; throw err ; } return _ . filter ( this . commands , function ( cmd ) { return cmd . name === name ; } ) ; }
Returns the command modules by command name.
@param {String} name The command name.
@returns {Array}
Returns the command modules by command name .