Skip to content

pywry.cli

Command-line interface for PyWry.


pywry.cli.main

main() -> int

Run the main CLI entry point.

RETURNS DESCRIPTION
int

Exit code.

pywry.cli.handle_config

handle_config(args: Namespace) -> int

Handle the config command.

PARAMETER DESCRIPTION
args

Parsed command line arguments.

TYPE: Namespace

RETURNS DESCRIPTION
int

Exit code.

pywry.cli.handle_init

handle_init(args: Namespace) -> int

Handle the init command.

PARAMETER DESCRIPTION
args

Parsed command line arguments.

TYPE: Namespace

RETURNS DESCRIPTION
int

Exit code.

pywry.cli.handle_mcp

handle_mcp(args: Namespace) -> int

Handle the mcp command.

PARAMETER DESCRIPTION
args

Parsed command line arguments.

TYPE: Namespace

RETURNS DESCRIPTION
int

Exit code.

pywry.cli.show_config_sources

show_config_sources() -> int

Show configuration file sources and their status.

RETURNS DESCRIPTION
int

Exit code.

pywry.cli.format_config_show

format_config_show(settings: PyWrySettings) -> str

Format configuration for display.

PARAMETER DESCRIPTION
settings

The settings object to format.

TYPE: PyWrySettings

RETURNS DESCRIPTION
str

Formatted configuration string.