Rulvar API reference / @rulvar/executor / runChildProcess
Function: runChildProcess()
ts
function runChildProcess(spec): Promise<ChildResult>;Defined in: packages/executor/src/child.ts:57
Spawns one child and resolves with its captured output and exit status, or rejects if the process could not be spawned at all (e.g. the command is a bare name and PATH is not in env, so it cannot be resolved). A child that exits non-zero or is killed resolves normally; interpreting that is the caller's job.
Parameters
| Parameter | Type |
|---|---|
spec | ChildSpec |
Returns
Promise<ChildResult>