From 17bd0962f30b18a4a55db4486d4ae91974873539 Mon Sep 17 00:00:00 2001 From: Sumedh Nimkarde Date: Tue, 22 Jan 2019 13:33:30 +0530 Subject: [PATCH] Return an .all property in the result --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 0610a581cc..67a1c215c9 100644 --- a/index.js +++ b/index.js @@ -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, { @@ -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,