Skip to content

pywry.cli

Command-line interface for PyWry.


pywry.cli.main

main() -> int

Run the main CLI entry point.

Returns:

Type Description
int

Exit code.

pywry.cli.handle_config

handle_config(args: Namespace) -> int

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_init(args: Namespace) -> int

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_mcp(args: Namespace) -> int

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_config_sources() -> int

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.