Skip to content

Commit 96dcbc7

Browse files
authored
Update cli.py - Change Color Blue to Increase Visibility
The color blue is not visible on a terminal with a black background which is a very common configuration
1 parent 7b93b41 commit 96dcbc7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/fastapi_cli/cli.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -303,25 +303,25 @@ def dev(
303303
"""
304304
Run a [bold]FastAPI[/bold] app in [yellow]development[/yellow] mode. 🧪
305305
306-
This is equivalent to [bold]fastapi run[/bold] but with [bold]reload[/bold] enabled and listening on the [blue]127.0.0.1[/blue] address.
306+
This is equivalent to [bold]fastapi run[/bold] but with [bold]reload[/bold] enabled and listening on the [bright_blue]127.0.0.1[/bright_blue] address.
307307
308308
It automatically detects the Python module or package that needs to be imported based on the file or directory path passed.
309309
310310
If no path is passed, it tries with:
311311
312-
- [blue]main.py[/blue]
313-
- [blue]app.py[/blue]
314-
- [blue]api.py[/blue]
315-
- [blue]app/main.py[/blue]
316-
- [blue]app/app.py[/blue]
317-
- [blue]app/api.py[/blue]
312+
- [bright_blue]main.py[/bright_blue]
313+
- [bright_blue]app.py[/bright_blue]
314+
- [bright_blue]api.py[/bright_blue]
315+
- [bright_blue]app/main.py[/bright_blue]
316+
- [bright_blue]app/app.py[/bright_blue]
317+
- [bright_blue]app/api.py[/bright_blue]
318318
319319
It also detects the directory that needs to be added to the [bold]PYTHONPATH[/bold] to make the app importable and adds it.
320320
321321
It detects the [bold]FastAPI[/bold] app object to use. By default it looks in the module or package for an object named:
322322
323-
- [blue]app[/blue]
324-
- [blue]api[/blue]
323+
- [bright_blue]app[/bright_blue]
324+
- [bright_blue]api[/bright_blue]
325325
326326
Otherwise, it uses the first [bold]FastAPI[/bold] app found in the imported module or package.
327327
"""

0 commit comments

Comments
 (0)