File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed
src/fastapi_cloud_cli/commands Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -121,17 +121,3 @@ known-third-party = ["typer", "fastapi"]
121121[tool .ruff .lint .pyupgrade ]
122122# Preserve types, even if a file imports `from __future__ import annotations`.
123123keep-runtime-typing = true
124-
125- [tool .uv .workspace ]
126- members = [
127- " my_fastapi_project" ,
128- " sample_project" ,
129- ]
130-
131- [dependency-groups ]
132- dev = [
133- " coverage>=7.6.1" ,
134- " pytest>=8.3.5" ,
135- " respx>=0.22.0" ,
136- " ruff>=0.14.2" ,
137- ]
Original file line number Diff line number Diff line change 44from dataclasses import dataclass , field
55from typing import Annotated , Optional
66
7- from rich_toolkit import RichToolkit
87import typer
8+ from rich_toolkit import RichToolkit
99
1010from fastapi_cloud_cli .utils .cli import get_rich_toolkit
1111
12+
1213#TODO: Add ability to fetch different templates in the future via --template option
1314TEMPLATE_CONTENT = """from fastapi import FastAPI
1415app = FastAPI()
@@ -150,17 +151,13 @@ def new(
150151 ] = None ,
151152) -> None :
152153
153- # Determine project name and path
154154 if project_name :
155- # Create project in a new subdirectory
156155 name = project_name
157156 path = pathlib .Path .cwd () / project_name
158157 else :
159- # Initialize in current directory
160158 name = pathlib .Path .cwd ().name
161159 path = pathlib .Path .cwd ()
162160
163- # Create project configuration
164161 config = ProjectConfig (
165162 name = name ,
166163 path = path ,
You can’t perform that action at this time.
0 commit comments