Application¶
application ¶
Define the command-line application's process boundary.
This module coordinates argument parsing, runtime configuration, logging, and
command execution. Domain work remains in hotstring.pipeline, while
parser and input-resolution details live in sibling CLI modules.
main ¶
Run the command-line interface.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
argv
|
Sequence[str] | None
|
Optional argument sequence excluding the executable name. |
None
|
Returns:
| Type | Description |
|---|---|
int
|
Process exit status: zero for success, one for a runtime failure, or |
int
|
130 when execution is interrupted. Invalid command-line input is |
int
|
reported by |
Source code in hotstring\cli\application.py
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 49 50 51 52 53 54 | |
_configure_logging ¶
_configure_logging(verbosity: int) -> None
Configure application logging for the requested verbosity.
Logging is left untouched at the default verbosity so library consumers and multiprocessing workers do not inherit an unnecessary root handler.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
verbosity
|
int
|
Number of |
required |
Source code in hotstring\cli\application.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |