INNER CODE UNIT · Python

main

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

def main() -> None:
    """Entry point for the CLI application."""
    # Bind a command-wide correlation ID so all logs have `cmd_id`
    set_command_context()
    # Early logging bootstrap from env/argv; safe to reconfigure later
    bootstrap_cli_logging()
    # Register plugin-supplied CLI commands after logging honors env overrides
    ensure_plugin_cli_extensions_registered(app)
    # Log invocation context (argv + env) for all commands
    _log_cli_invocation_context()
    app()


if __name__ == "__main__":
    main()


def _mask_env_value(key: str, value: str) -> str:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…