feat(utils): refactored stderr handling API from boolean option to enum-like option

- Changed stderr handling API from `exposeStderr` boolean option to `stderr: "full" | null` enum-like option for clearer intent.
- Refactored ChildProcess constructor to accept stderr parameter directly instead of options object for simpler API.
This commit is contained in:
can1357
2026-02-05 11:07:48 +01:00
parent 435b778a29
commit 16ed34ebed
2 changed files with 10 additions and 7 deletions
@@ -79,7 +79,7 @@ export async function executeSSH(
using child = ptree.spawn(["ssh", ...(await buildRemoteCommand(host, resolvedCommand))], {
signal: options?.signal,
timeout: options?.timeout,
exposeStderr: true,
stderr: "full",
});
const sink = new OutputSink({