refactor(cli): centralize Typer app creation and command registration

This commit is contained in:
2026-03-06 16:07:01 +08:00
parent 7dbd704d6b
commit 4a6918ce56
7 changed files with 20 additions and 16 deletions

View File

@@ -1,6 +1,8 @@
import typer
from commands import app
@app.command()
def visualize(
ctx: typer.Context,
host: str = typer.Option("127.0.0.1", "--host", help="Server host"),