var exec = require('child_process').exec,
    Q = require('q');

module.exports = function runCommand(command) {
  var child,
      dfd = Q.defer();

  child = exec(command, function callback(error, stdout, stderr) {
    if (error) {
      error.stdout = stdout;
      error.stderr = stderr;
      error.message = 'Error running command: `' + command + '`.';

      dfd.reject(error);
    } else {
      dfd.resolve();
    }
  });

  child.stdout.pipe(process.stdout);
  child.stderr.pipe(process.stderr);

  return dfd.promise;
};

@@ -102,16 +102,25 @@
 (command
+, options
 ) %7B%0A  va
@@ -175,16 +175,25 @@
 command,
+ options,
  functio

Allow passing options into `runCommand()`