CLI Utilities¶
Command-line interface utilities for running executors.
get_cli_parser ¶
get_cli_parser()
Build an argument parser for the executor CLI.
Returns:
| Type | Description |
|---|---|
|
An |
|
|
|
Source code in src/aibs_informatics_core/executors/cli.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
run_cli_executor ¶
run_cli_executor(args=None)
Run an executor from the command line.
Parses CLI arguments to load an executor class and execute it with the provided input. Optionally writes the response to an output location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args
|
list[str] | None
|
Optional list of CLI arguments. If None, reads from |
None
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If the specified executor class is not a subclass of |
Source code in src/aibs_informatics_core/executors/cli.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | |