CommandResult
Buffered command result returned by runtime execution methods.
Shared
CommandResult declaration
Section titled “CommandResult declaration”class CommandResult:CommandResult construction
Section titled “CommandResult construction”CommandResult(exit_code: int, stdout: bytes, stderr: bytes, duration: float, stdout_truncated: bool = False, stderr_truncated: bool = False)CommandResult attributes
Section titled “CommandResult attributes”| 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. |
