app/lib/loader.js
function _loadCmds(dirpath) {
    if (fs.existsSync(dirpath) && fs.statSync(dirpath).isDirectory()) {
      var commandFiles = util.walkSync(dirpath);
      _.each(commandFiles, function(cf) {
        _require(cf);
      });
    } else {
      logger.debug('Directory not found '+dirpath);
      throw new Error('Command directory not found');
    }
  }
function _loadCmds(dirpath) {
    if (fs.existsSync(dirpath) && fs.statSync(dirpath).isDirectory()) {
      var commandFiles = util.walkSync(dirpath);
      _.each(commandFiles, function(cf) {
        _require(cf);
      });
    } else {
      logger.debug('Directory not found '+dirpath);
      throw new Error('Command directory not found');
    }
  }
function _loadCmds ( dirpath ) { if ( fs . existsSync ( dirpath ) && fs . statSync ( dirpath ) . isDirectory ( ) ) { var commandFiles = util . walkSync ( dirpath ) ; _ . each ( commandFiles , function ( cf ) { _require ( cf ) ; } ) ; } else { logger . debug ( 'Directory not found ' + dirpath ) ; throw new Error ( 'Command directory not found' ) ; } }
Load tasks in a given folder.
Load tasks in a given folder .