index.js
function lazy(arg) {
  var conf = this.configure();
  var action = arg.action();
  if(!conf.command.dir || action !== undefined) return false;
  var file = path.join(conf.command.dir, getModulePath.call(this, arg))
  try{
    action = require(file);
    if(typeof action !== 'function') {
      return this.raise(this.errors.ECMD_TYPE, [file]);
    }
    arg.action(action);
  }catch(e) {
    return this.raise(this.errors.ECMD_REQUIRE, [file, e.message], e);
  }
}
function lazy(arg) {
  var conf = this.configure();
  var action = arg.action();
  if(!conf.command.dir || action !== undefined) return false;
  var file = path.join(conf.command.dir, getModulePath.call(this, arg))
  try{
    action = require(file);
    if(typeof action !== 'function') {
      return this.raise(this.errors.ECMD_TYPE, [file]);
    }
    arg.action(action);
  }catch(e) {
    return this.raise(this.errors.ECMD_REQUIRE, [file, e.message], e);
  }
}
function lazy ( arg ) { var conf = this . configure ( ) ; var action = arg . action ( ) ; if ( ! conf . command . dir || action !== undefined ) return false ; var file = path . join ( conf . command . dir , getModulePath . call ( this , arg ) ) try { action = require ( file ) ; if ( typeof action !== 'function' ) { return this . raise ( this . errors . ECMD_TYPE , [ file ] ) ; } arg . action ( action ) ; } catch ( e ) { return this . raise ( this . errors . ECMD_REQUIRE , [ file , e . message ] , e ) ; } }
lazily load a command action definition from a module
lazily load a command action definition from a module