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)
Name Type or value Description
exit_code int Process exit code.
stdout bytes Captured standard output bytes.
stderr bytes Captured standard error bytes.
duration float Command duration in seconds.
stdout_truncated bool Whether standard output exceeded the configured limit.
stderr_truncated bool Whether standard error exceeded the configured limit.
stdout_text str Decode captured standard output as text.
stderr_text str Decode captured standard error as text.