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.
Parameters
Section titled “Parameters”command
Section titled “command”string
The executable to run.
readonly string[] | undefined
Arguments passed to it verbatim.
options
Section titled “options”The sink and scope identity, plus everything SpawnProcessOptions accepts.
Returns
Section titled “Returns”Promise<ProcessResult>
The exit status and the captured streams.
Throws
Section titled “Throws”Whatever spawnProcess throws, after the scope has been closed.