File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def callback(
45
45
46
46
Manage your [bold]FastAPI[/bold] projects, run your FastAPI apps, and more.
47
47
48
- Read more in the docs: [link]https://fastapi.tiangolo.com/fastapi-cli/[/link].
48
+ Read more in the docs: [link=https://fastapi.tiangolo.com/fastapi-cli/ ]https://fastapi.tiangolo.com/fastapi-cli/[/link].
49
49
"""
50
50
51
51
@@ -66,7 +66,9 @@ def _run(
66
66
except FastAPICLIException as e :
67
67
logger .error (str (e ))
68
68
raise typer .Exit (code = 1 ) from None
69
- serving_str = f"[dim]Serving at:[/dim] [link]http://{ host } :{ port } [/link]\n \n [dim]API docs:[/dim] [link]http://{ host } :{ port } /docs[/link]"
69
+ url = f"http://{ host } :{ port } "
70
+ url_docs = f"{ url } /docs"
71
+ serving_str = f"[dim]Serving at:[/dim] [link={ url } ]{ url } [/link]\n \n [dim]API docs:[/dim] [link={ url_docs } ]{ url_docs } [/link]"
70
72
71
73
if command == "dev" :
72
74
panel = Panel (
You can’t perform that action at this time.
0 commit comments