INNER CODE UNIT · Python

ensure_plugin_cli_extensions_registered

CaddyGlow/ccproxy-api · ccproxy/cli/main.py:94

def ensure_plugin_cli_extensions_registered(app: typer.Typer) -> None:
    """Register plugin CLI extensions once, after logging is configured."""
    global _plugins_registered
    if _plugins_registered:
        return

    register_plugin_cli_extensions(app)
    _plugins_registered = True


def _register_plugin_command(
    app: typer.Typer, plugin_name: str, cmd_spec: CliCommandSpec
) -> None:
    """Register a single plugin command."""
    try:
        if cmd_spec.parent_command is None:
            # Top-level command
            app.command(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…