API reference
python:irx:irx.builder.base.run_command
function run_command
run_command(command: Sequence[str], *, capture_stderr: bool = True, raise_on_error: bool = True, debug: bool = False) -> CommandResult
Source: packages/irx/src/irx/builder/base.py:80
Run a shell command and return a structured CommandResult.
Parameters
-
command — Type: Sequence[str]
-
capture_stderr — Type: bool; Default: True
-
raise_on_error — Type: bool; Default: True
-
debug — Type: bool; Default: False
Returns
Type: CommandResult
Raises
- CommandError: "When the command exits non-zero and raise_on_error=True."