Comparing version 0.4.0 to 0.4.1
@@ -250,5 +250,5 @@ var child_process = require('child_process'), | ||
function iterate() { | ||
return exec(cmds[complete], opts, function(err, out, code) { | ||
errBuf += err; | ||
outBuf += out; | ||
return exec(cmds[complete], opts, function(err, stdout, stderr, code) { | ||
errBuf += stderr; | ||
outBuf += stdout; | ||
@@ -260,2 +260,3 @@ if (opts.safe && code !== 0) { | ||
complete++; | ||
if (complete === cmds.length) { | ||
@@ -262,0 +263,0 @@ callback(errBuf, outBuf, code); |
{ | ||
"name": "executive", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "exec for the lazy", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,3 +10,3 @@ # executive | ||
exec('ls', function(err, out, code) { | ||
exec('ls', function(err, stdout, stderr) { | ||
// Done, no need to echo out as it's piped to stdout by default. | ||
@@ -20,3 +20,3 @@ }); | ||
exec('ls -AGF Foo\\ bar', function(err, out, code) { | ||
exec('ls -AGF Foo\\ bar', function(err, stdout, stderr) { | ||
// Note the escaped folder name. | ||
@@ -30,3 +30,3 @@ }); | ||
exec(['ls', 'ls', 'ls'], function(err, out, code) { | ||
exec(['ls', 'ls', 'ls'], function(err, stdout, stderr) { | ||
// All three ls commands are called in order. | ||
@@ -38,3 +38,3 @@ }); | ||
```javascript | ||
exec(['ls', 'aaaaa', 'ls'], function(err, out, code) { | ||
exec(['ls', 'aaaaa', 'ls'], function(err, stdout, stderr) { | ||
// First command succeeds, second blows up, third is never called. | ||
@@ -83,3 +83,3 @@ }); | ||
```javascript | ||
exec.interactive('vim', function(err, out, code) { | ||
exec.interactive('vim', function(err) { | ||
// Edit your commit message or whatnot | ||
@@ -94,3 +94,3 @@ }); | ||
```javascript | ||
exec.quiet(['ls', 'ls'], function(err, out, code) { | ||
exec.quiet(['ls', 'ls'], function(err, stdout, stderr) { | ||
// Not a peep is heard, and both ls commands will be executed. | ||
@@ -107,3 +107,3 @@ }); | ||
```javascript | ||
exec(['ls', 'aaaaaa', 'ls'], {safe: false}, function(err, out, code) { | ||
exec(['ls', 'aaaaaa', 'ls'], {safe: false}, function(err, stdout, stderr) { | ||
// Both commands execute despite aaaaaa not being a valid executable. | ||
@@ -110,0 +110,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13052