Coverage for src/fastapi_cloud_cli/cli.py: 100%
60 statements
« prev ^ index » next coverage.py v7.16.0, created at 2026-11-09 00:25 +0000
« prev ^ index » next coverage.py v7.16.0, created at 2026-11-09 00:25 +0000
1# Import decorated callbacks so they register themselves with their Typer apps.
2from fastapi_cloud_cli._app import app as app 1abcdefg
3from fastapi_cloud_cli._app import cloud_app as cloud_app 1abcdefg
4from fastapi_cloud_cli.commands.apps._app import apps_app 1abcdefg
5from fastapi_cloud_cli.commands.apps.create import create_app as create_app 1abcdefg
6from fastapi_cloud_cli.commands.apps.get import get_app as get_app 1abcdefg
7from fastapi_cloud_cli.commands.apps.link import link_app as link_app 1abcdefg
8from fastapi_cloud_cli.commands.apps.list import list_apps as list_apps 1abcdefg
9from fastapi_cloud_cli.commands.apps.unlink import unlink_app as unlink_app 1abcdefg
10from fastapi_cloud_cli.commands.apps.update import update_app as update_app 1abcdefg
11from fastapi_cloud_cli.commands.auth._app import auth_app 1abcdefg
12from fastapi_cloud_cli.commands.auth.wait import wait as wait 1abcdefg
13from fastapi_cloud_cli.commands.ci._app import ci_app 1abcdefg
14from fastapi_cloud_cli.commands.ci.print_workflow import ( 1abcdefg
15 print_workflow as print_workflow,
16)
17from fastapi_cloud_cli.commands.deploy.command import deploy as deploy 1abcdefg
18from fastapi_cloud_cli.commands.deployments import deployments_app 1abcdefg
19from fastapi_cloud_cli.commands.domains._app import domains_app 1abcdefg
20from fastapi_cloud_cli.commands.domains.add import add_domain as add_domain 1abcdefg
21from fastapi_cloud_cli.commands.domains.get import get_domain as get_domain 1abcdefg
22from fastapi_cloud_cli.commands.domains.list import list_domains as list_domains 1abcdefg
23from fastapi_cloud_cli.commands.domains.remove import remove_domain as remove_domain 1abcdefg
24from fastapi_cloud_cli.commands.domains.restart import restart_domain as restart_domain 1abcdefg
25from fastapi_cloud_cli.commands.env._app import env_app 1abcdefg
26from fastapi_cloud_cli.commands.env.delete import delete as delete 1abcdefg
27from fastapi_cloud_cli.commands.env.get import get_variable as get_variable 1abcdefg
28from fastapi_cloud_cli.commands.env.list import list_variables as list_variables 1abcdefg
29from fastapi_cloud_cli.commands.env.set import set as set 1abcdefg
30from fastapi_cloud_cli.commands.integrations import integrations_app 1abcdefg
31from fastapi_cloud_cli.commands.integrations.providers.list import ( 1abcdefg
32 list_providers as list_providers,
33)
34from fastapi_cloud_cli.commands.integrations.resources.connect import ( 1abcdefg
35 connect_resource as connect_resource,
36)
37from fastapi_cloud_cli.commands.integrations.resources.disconnect import ( 1abcdefg
38 disconnect_resource as disconnect_resource,
39)
40from fastapi_cloud_cli.commands.integrations.resources.get import ( 1abcdefg
41 get_resource as get_resource,
42)
43from fastapi_cloud_cli.commands.integrations.resources.list import ( 1abcdefg
44 list_resources as list_resources,
45)
46from fastapi_cloud_cli.commands.login import login as login 1abcdefg
47from fastapi_cloud_cli.commands.logout import logout as logout 1abcdefg
48from fastapi_cloud_cli.commands.logs import logs as logs 1abcdefg
49from fastapi_cloud_cli.commands.setup_ci import setup_ci as setup_ci 1abcdefg
50from fastapi_cloud_cli.commands.teams._app import teams_app 1abcdefg
51from fastapi_cloud_cli.commands.teams.get import get_team as get_team 1abcdefg
52from fastapi_cloud_cli.commands.teams.list import list_teams as list_teams 1abcdefg
53from fastapi_cloud_cli.commands.tokens._app import tokens_app 1abcdefg
54from fastapi_cloud_cli.commands.tokens.create import create_token as create_token 1abcdefg
55from fastapi_cloud_cli.commands.tokens.delete import delete_token as delete_token 1abcdefg
56from fastapi_cloud_cli.commands.tokens.list import list_tokens as list_tokens 1abcdefg
57from fastapi_cloud_cli.commands.whoami import whoami as whoami 1abcdefg
58from fastapi_cloud_cli.logging import setup_logging 1abcdefg
59from fastapi_cloud_cli.utils.sentry import init_sentry 1abcdefg
61setup_logging() 1abcdefg
63cloud_app.add_typer(env_app, name="env") 1abcdefg
64cloud_app.add_typer(auth_app, name="auth") 1abcdefg
65cloud_app.add_typer(apps_app, name="apps") 1abcdefg
66cloud_app.add_typer(ci_app, name="ci") 1abcdefg
67cloud_app.add_typer(deployments_app, name="deployments") 1abcdefg
68cloud_app.add_typer(domains_app, name="domains") 1abcdefg
69cloud_app.add_typer(integrations_app, name="integrations") 1abcdefg
70cloud_app.add_typer(teams_app, name="teams") 1abcdefg
71cloud_app.add_typer(tokens_app, name="tokens") 1abcdefg
73app.add_typer(cloud_app, name="cloud") 1abcdefg
76def main() -> None: 1abcdefg
77 init_sentry() 1abcdefg
78 app() 1abcdefg