From 2b9bf9a4f1ff04ee944a07f9b50b1ea2575582cd Mon Sep 17 00:00:00 2001 From: Xinyu Du Date: Wed, 6 May 2026 01:48:11 +0800 Subject: [PATCH] feat: add deeptutor start command to launch backend and frontend together Add a `start` CLI command that delegates to scripts/start_web.py so users can launch the full web app with a single command instead of manually running `python scripts/start_web.py`. --- deeptutor_cli/main.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/deeptutor_cli/main.py b/deeptutor_cli/main.py index 83f3d8b67..71ce99fa6 100644 --- a/deeptutor_cli/main.py +++ b/deeptutor_cli/main.py @@ -103,6 +103,17 @@ def run_capability( maybe_run(run_turn_and_render(app=DeepTutorApp(), request=request, fmt=fmt)) +@app.command() +def start() -> None: + """Launch backend + frontend together.""" + import subprocess + import sys + from pathlib import Path + + script = str(Path(__file__).resolve().parent.parent / "scripts" / "start_web.py") + subprocess.run([sys.executable, script]) + + @app.command() def serve( host: str = typer.Option("0.0.0.0", help="Bind address."),