Verbose mode now prints stdout/stderr of invoked commands
This commit is contained in:
parent
0c5f3f37b4
commit
7b7c148f48
1 changed files with 4 additions and 0 deletions
|
|
@ -89,6 +89,10 @@ async function runExec(command: string, args: string[], maxBuffer = 2_000_000):
|
||||||
maxBuffer,
|
maxBuffer,
|
||||||
encoding: 'utf8'
|
encoding: 'utf8'
|
||||||
});
|
});
|
||||||
|
if (globalVerbose) {
|
||||||
|
if (stdout.trim()) console.log(stdout.trim());
|
||||||
|
if (stderr.trim()) console.error(stderr.trim());
|
||||||
|
}
|
||||||
return { stdout, stderr };
|
return { stdout, stderr };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue