Skip to content

checkOutput

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

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

Run a command and return its output, raising CalledProcessError if it returns non-zero.

Parameters

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

Returns

string

Captured stdout