command.js
function Command(command, options) {
  var previousPath;

  this.command = command;

  // We're on Windows if `process.platform` starts with "win", i.e. "win32".
  this.isWindows = (process.platform.lastIndexOf('win') === 0);

  // the cwd and environment of the command are the same as the main node
  // process by default.
  this.options = defaults(options || {}, {
    cwd: process.cwd(),
    env: process.env,
    verbosity: (options && options.silent) ? 1 : 2,
    usePowerShell: false
  });

  // include node_modules/.bin on the path when we execute the command.
  previousPath = this.options.env.PATH;
  this.options.env.PATH = path.join(this.options.cwd, 'node_modules', '.bin');
  this.options.env.PATH += path.delimiter;
  this.options.env.PATH += previousPath;
}
function Command(command, options) {
  var previousPath;

  this.command = command;

  // We're on Windows if `process.platform` starts with "win", i.e. "win32".
  this.isWindows = (process.platform.lastIndexOf('win') === 0);

  // the cwd and environment of the command are the same as the main node
  // process by default.
  this.options = defaults(options || {}, {
    cwd: process.cwd(),
    env: process.env,
    verbosity: (options && options.silent) ? 1 : 2,
    usePowerShell: false
  });

  // include node_modules/.bin on the path when we execute the command.
  previousPath = this.options.env.PATH;
  this.options.env.PATH = path.join(this.options.cwd, 'node_modules', '.bin');
  this.options.env.PATH += path.delimiter;
  this.options.env.PATH += previousPath;
}
function Command ( command , options ) { var previousPath ; this . command = command ; // We're on Windows if `process.platform` starts with "win", i.e. "win32". this . isWindows = ( process . platform . lastIndexOf ( 'win' ) === 0 ) ; // the cwd and environment of the command are the same as the main node // process by default. this . options = defaults ( options || { } , { cwd : process . cwd ( ) , env : process . env , verbosity : ( options && options . silent ) ? 1 : 2 , usePowerShell : false } ) ; // include node_modules/.bin on the path when we execute the command. previousPath = this . options . env . PATH ; this . options . env . PATH = path . join ( this . options . cwd , 'node_modules' , '.bin' ) ; this . options . env . PATH += path . delimiter ; this . options . env . PATH += previousPath ; }
Creates a new `gulp-run` command.

@param {string} command
@param {object} options
Creates a new gulp - run command .