We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 152c4c4 commit 11ee54eCopy full SHA for 11ee54e
pyproject.toml
@@ -47,6 +47,9 @@ standard = [
47
standard-no-fastapi-cloud-cli = [
48
"uvicorn[standard] >= 0.15.0",
49
]
50
+new = [
51
+ "fastapi-new >= 0.0.2",
52
+]
53
54
[project.urls]
55
Homepage = "https://github.com/fastapi/fastapi-cli"
src/fastapi_cli/cli.py
@@ -37,6 +37,16 @@
37
pass
38
39
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
+ pass
def version_callback(value: bool) -> None:
if value:
print(f"FastAPI CLI version: [green]{__version__}[/green]")
0 commit comments