lib/run_command.js
function run(params, command, callback)
{
  var job;

  // decouple commands
  command = clone(command);

  // start command execution and get job reference
  job = executioner(command, stringify(extend(this, params)), this.options || {}, callback);

  // make ready to call task termination function
  return partial(executioner.terminate, job);
}
function run(params, command, callback)
{
  var job;

  // decouple commands
  command = clone(command);

  // start command execution and get job reference
  job = executioner(command, stringify(extend(this, params)), this.options || {}, callback);

  // make ready to call task termination function
  return partial(executioner.terminate, job);
}
function run ( params , command , callback ) { var job ; // decouple commands command = clone ( command ) ; // start command execution and get job reference job = executioner ( command , stringify ( extend ( this , params ) ) , this . options || { } , callback ) ; // make ready to call task termination function return partial ( executioner . terminate , job ) ; }
Runs provided command within state context

@param   {object} params - extra execution-time parameters
@param   {string|array} command - command to run
@param   {function} callback - invoked after command finished executing
@returns {void}
Runs provided command within state context