Skip to content

checkCall

checkCall(args: string | string[], options?: SubprocessOptions): number

Defined in: packages/pythonlib/src/subprocess.ts:235

Run a command and raise CalledProcessError if it returns non-zero.

Parameters

ParameterTypeDescription
argsstring | string[]Command and arguments
options?SubprocessOptionsSubprocess options

Returns

number

Exit code (always 0 if no exception)