Skip to content

Commit 11ee54e

Browse files
Add fastapi-new in new optional dependency group
1 parent 152c4c4 commit 11ee54e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ standard = [
4747
standard-no-fastapi-cloud-cli = [
4848
"uvicorn[standard] >= 0.15.0",
4949
]
50+
new = [
51+
"fastapi-new >= 0.0.2",
52+
]
5053

5154
[project.urls]
5255
Homepage = "https://github.com/fastapi/fastapi-cli"

src/fastapi_cli/cli.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@
3737
pass
3838

3939

40+
try:
41+
from fastapi_new.cli import (
42+
app as fastapi_new_cli,
43+
)
44+
45+
app.add_typer(fastapi_new_cli)
46+
except ImportError: # pragma: no cover
47+
pass
48+
49+
4050
def version_callback(value: bool) -> None:
4151
if value:
4252
print(f"FastAPI CLI version: [green]{__version__}[/green]")

0 commit comments

Comments
 (0)