INNER CODE UNIT · Python
_get_command_app
CaddyGlow/ccproxy-api · ccproxy/cli/main.py:299
def _get_command_app(command_name: str) -> typer.Typer | None:
"""Get the typer app for a parent command."""
command_apps = {
"auth": auth_app,
"config": config_app,
"plugins": plugins_app,
"status": status_app,
}
return command_apps.get(command_name)
# Add global options
@app.callback()
def app_main(
ctx: typer.Context,
version: Annotated[
bool,
typer.Option(