Skip to content

Commit 1ed9676

Browse files
committed
Import fastapi-cloud-cli if installed
1 parent 3b22ba0 commit 1ed9676

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/fastapi_cli/cli.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@
2525
uvicorn = None # type: ignore[assignment]
2626

2727

28+
try:
29+
from fastapi_cloud_cli.cli import ( # type: ignore[import-not-found]
30+
app as fastapi_cloud_cli,
31+
)
32+
33+
app.add_typer(fastapi_cloud_cli)
34+
except ImportError: # pragma: no cover
35+
pass
36+
37+
2838
def version_callback(value: bool) -> None:
2939
if value:
3040
print(f"FastAPI CLI version: [green]{__version__}[/green]")

0 commit comments

Comments
 (0)