Output a string notifying where the frontend is running. Args: url: The URL where the frontend is running. backend_present: Whether the backend is present.
(url: str, backend_present: bool)
| 190 | |
| 191 | |
| 192 | def notify_frontend(url: str, backend_present: bool): |
| 193 | """Output a string notifying where the frontend is running. |
| 194 | |
| 195 | Args: |
| 196 | url: The URL where the frontend is running. |
| 197 | backend_present: Whether the backend is present. |
| 198 | """ |
| 199 | console.print( |
| 200 | f"App running at: [bold green]{url.rstrip('/')}/[/bold green]{' (Frontend-only mode)' if not backend_present else ''}" |
| 201 | ) |
| 202 | |
| 203 | |
| 204 | def notify_backend(host: str | None = None): |
no test coverage detected