Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ standard = [
standard-no-fastapi-cloud-cli = [
"uvicorn[standard] >= 0.15.0",
]
new = [
"fastapi-new >= 0.0.2 ; python_version >= '3.10'",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is required until we drop support for 3.8 and 3.9 💥

]

[project.urls]
Homepage = "https://github.com/fastapi/fastapi-cli"
Expand Down
10 changes: 10 additions & 0 deletions src/fastapi_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@
pass


try:
from fastapi_new.cli import (
app as fastapi_new_cli,
)

app.add_typer(fastapi_new_cli)
except ImportError: # pragma: no cover
pass


def version_callback(value: bool) -> None:
if value:
print(f"FastAPI CLI version: [green]{__version__}[/green]")
Expand Down
Loading