Interface ExecResult

interface ExecResult {
    code?: null | number;
    error?: Error;
    ok: boolean;
    signal?: null | string;
    stderr: string;
    stdout: string;
}

Properties

code?: null | number

Exit code, if the execution completed normally.

error?: Error

Error, if the process couldn't be launched (for example).

ok: boolean

Was the execution successful?

signal?: null | string

Signal name, if the process was interrupted.

stderr: string

If stdio is not inherited, the text from stderr.

stdout: string

If stdio is not inherited, the text from stdout.