Files
Mini-Nav/mini-nav/commands/visualize.py

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)