pywry.cli¶
Command-line interface for PyWry.
pywry.cli.main
¶
Run the main CLI entry point.
Returns:
| Type | Description |
|---|---|
int
|
Exit code. |
pywry.cli.handle_config
¶
Handle the config command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args
|
Namespace
|
Parsed command line arguments. |
required |
Returns:
| Type | Description |
|---|---|
int
|
Exit code. |
pywry.cli.handle_init
¶
Handle the init command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args
|
Namespace
|
Parsed command line arguments. |
required |
Returns:
| Type | Description |
|---|---|
int
|
Exit code. |
pywry.cli.handle_mcp
¶
Handle the mcp command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args
|
Namespace
|
Parsed command line arguments. |
required |
Returns:
| Type | Description |
|---|---|
int
|
Exit code. |
pywry.cli.show_config_sources
¶
Show configuration file sources and their status.
Returns:
| Type | Description |
|---|---|
int
|
Exit code. |
pywry.cli.format_config_show
¶
format_config_show(settings: PyWrySettings) -> str
Format configuration for display.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings
|
PyWrySettings
|
The settings object to format. |
required |
Returns:
| Type | Description |
|---|---|
str
|
Formatted configuration string. |