Handle process output with ProcessOutput
mainWhen you await a command executed via the $ template literal, it returns a ProcessOutput object. This object contains the results of the command execution, including exit codes, signals, and the captured output streams (stdout and stderr).
To access the output, you must await the ProcessPromise returned by the $ command.
const p = $"command" // This is a ProcessPromise
const o = await p // This is the ProcessOutput