Verbose mode now prints stdout/stderr of invoked commands

This commit is contained in:
Peter Steinberger
2025-11-24 11:54:43 +01:00
parent 0c5f3f37b4
commit 7b7c148f48

View File

@@ -89,6 +89,10 @@ async function runExec(command: string, args: string[], maxBuffer = 2_000_000):
maxBuffer,
encoding: 'utf8'
});
if (globalVerbose) {
if (stdout.trim()) console.log(stdout.trim());
if (stderr.trim()) console.error(stderr.trim());
}
return { stdout, stderr };
}