mirror of
https://github.com/SikongJueluo/Mini-Nav.git
synced 2026-03-13 04:45:32 +08:00
15 lines
424 B
Python
15 lines
424 B
Python
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"),
|
|
port: int = typer.Option(8050, "--port", "-p", help="Server port"),
|
|
debug: bool = typer.Option(True, "--debug/--no-debug", help="Enable debug mode"),
|
|
):
|
|
from visualizer import app as dash_app
|
|
|
|
dash_app.run(host=host, port=port, debug=debug)
|