Skip to content

spawnReportedProcess

spawnReportedProcess(command, args, options): Promise<ProcessResult>

Defined in: packages/app-system/src/process/report-process.ts:95

Runs a command as a reported scope: a scope-start/scope-end pair carrying the command, working directory, exit code and signal, wrapping one output event per line the child printed.

string

The executable to run.

readonly string[] | undefined

Arguments passed to it verbatim.

SpawnReportedProcessOptions

The sink and scope identity, plus everything SpawnProcessOptions accepts.

Promise<ProcessResult>

The exit status and the captured streams.

Whatever spawnProcess throws, after the scope has been closed.