Start the local browser GUI.
(
host: str = typer.Option("127.0.0.1", "--host", help="Host interface for the local GUI server."),
port: int = typer.Option(8765, "--port", "-p", help="Port for the local GUI server."),
no_browser: bool = typer.Option(False, "--no-browser", help="Do not open the browser automatically."),
)
| 229 | |
| 230 | @app.command() |
| 231 | def gui( |
| 232 | host: str = typer.Option("127.0.0.1", "--host", help="Host interface for the local GUI server."), |
| 233 | port: int = typer.Option(8765, "--port", "-p", help="Port for the local GUI server."), |
| 234 | no_browser: bool = typer.Option(False, "--no-browser", help="Do not open the browser automatically."), |
| 235 | ) -> None: |
| 236 | """Start the local browser GUI.""" |
| 237 | script = PROJECT_ROOT / "deployments" / "desktop" / "server.py" |
| 238 | if not script.exists(): |
| 239 | typer.echo(f"[error] desktop GUI server not found: {script}", err=True) |
| 240 | raise typer.Exit(code=1) |
| 241 | args = ["--host", host, "--port", str(port)] |
| 242 | if no_browser: |
| 243 | args.append("--no-browser") |
| 244 | raise typer.Exit(code=_run_python(script, *args)) |
| 245 | |
| 246 | |
| 247 | @wiki_app.command("init") |
nothing calls this directly
no test coverage detected