Skip to content

CommandResult

Buffered command result returned by runtime execution methods.

Shared

class CommandResult:
CommandResult(exit_code: int, stdout: bytes, stderr: bytes, duration: float, stdout_truncated: bool = False, stderr_truncated: bool = False)
NameType or valueDescription
exit_codeintProcess exit code.
stdoutbytesCaptured standard output bytes.
stderrbytesCaptured standard error bytes.
durationfloatCommand duration in seconds.
stdout_truncatedboolWhether standard output exceeded the configured limit.
stderr_truncatedboolWhether standard error exceeded the configured limit.
stdout_textstrDecode captured standard output as text.
stderr_textstrDecode captured standard error as text.