MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / gui

Function gui

paperflow/cli.py:231–244  ·  view source on GitHub ↗

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."),
)

Source from the content-addressed store, hash-verified

229
230@app.command()
231def 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")

Callers

nothing calls this directly

Calls 1

_run_pythonFunction · 0.85

Tested by

no test coverage detected