Skip to content

Commit

Permalink
Return an .all property in the result
Browse files Browse the repository at this point in the history
  • Loading branch information
lunaticmonk committed Jan 22, 2019
1 parent 2210988 commit 17bd096
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -278,6 +278,7 @@ module.exports = (command, args, options) => {
const result = arr[0];
result.stdout = arr[1];
result.stderr = arr[2];
result.all = `${result.stdout} ${result.stderr}`;

if (result.error || result.code !== 0 || result.signal !== null) {
const error = makeError(result, {
Expand All @@ -301,6 +302,7 @@ module.exports = (command, args, options) => {
return {
stdout: handleOutput(parsed.options, result.stdout),
stderr: handleOutput(parsed.options, result.stderr),
all: handleOutput(parsed.options, result.all),
code: 0,
failed: false,
killed: false,
Expand Down

0 comments on commit 17bd096

Please sign in to comment.