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.
fastapi-new
new
1 parent 678c50d commit a45679fCopy full SHA for a45679f
β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 ; python_version >= '3.10'",
52
+]
53
54
[project.urls]
55
Homepage = "https://github.com/fastapi/fastapi-cli"
βsrc/fastapi_cli/cli.pyβ
@@ -39,6 +39,16 @@
39
pass
40
41
42
+try:
43
+ from fastapi_new.cli import ( # type: ignore[import-not-found]
44
+ app as fastapi_new_cli,
45
+ )
46
+
+ app.add_typer(fastapi_new_cli) # pragma: no cover
+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