index.js
function main (action, argv, options) {
  options = options || {}
  const cli = new CliDispatch(action, options.actions || 'actions', options.base || callersDir())

  setImmediate(() => cli.dispatch(argv))

  return cli
}
function main (action, argv, options) {
  options = options || {}
  const cli = new CliDispatch(action, options.actions || 'actions', options.base || callersDir())

  setImmediate(() => cli.dispatch(argv))

  return cli
}
function main ( action , argv , options ) { options = options || { } const cli = new CliDispatch ( action , options . actions || 'actions' , options . base || callersDir ( ) ) setImmediate ( ( ) => cli . dispatch ( argv ) ) return cli }
Dispatches the action by the given paramters.
@param {string} action The action name
@param {object} argv The parameters for the actions
@param {string} [options.actions] The action's directory (relative path)
@param {string} [options.base] The action's base directory (absolute path)
@return {CliDispatch}
Dispatches the action by the given paramters .