Output a string notifying where the backend is running. Args: host: The backend host. If not provided, falls back to the config value.
(host: str | None = None)
| 202 | |
| 203 | |
| 204 | def notify_backend(host: str | None = None): |
| 205 | """Output a string notifying where the backend is running. |
| 206 | |
| 207 | Args: |
| 208 | host: The backend host. If not provided, falls back to the config value. |
| 209 | """ |
| 210 | config = get_config() |
| 211 | effective_host = host if host is not None else config.backend_host |
| 212 | console.print( |
| 213 | f"Backend running at: [bold green]http://{effective_host}:{config.backend_port}[/bold green]" |
| 214 | ) |
| 215 | |
| 216 | |
| 217 | # run_process_and_launch_url is assumed to be used |
no test coverage detected