minitrino.core.exec.result module
CommandResult dataclass for command execution results.
-
class minitrino.core.exec.result.CommandResult(command: list[str], output: str, exit_code: int, duration: float, error: BaseException | None = None, process_handle: Any | None = None, is_completed: bool = True)[source][source]
Bases: object
Command result.
-
command[source]
The command that was executed.
- Type:
list[str]
-
output[source]
The combined output of stdout and stderr.
- Type:
str
-
exit_code[source]
The exit code returned by the command.
- Type:
int
-
duration[source]
Duration in seconds for the command execution.
- Type:
float
-
error[source]
Error if command failed, else None.
- Type:
Optional[BaseException]
-
process_handle[source]
Optional handle to the underlying process (subprocess.Popen or exec_id).
Used for streaming contexts to check process status.
- Type:
Optional[Any]
-
is_completed[source]
Whether the command has completed execution.
Used in streaming contexts to signal completion.
- Type:
bool
-
command: list[str][source]
-
output: str[source]
-
exit_code: int[source]
-
duration: float[source]
-
error: BaseException | None = None[source]
-
process_handle: Any | None = None[source]
-
is_completed: bool = True[source]