learn-sql-model/learn_sql_model/cli/tui.py
2023-05-19 08:35:16 -05:00

18 lines
363 B
Python

import typer
from learn_sql_model.cli.common import verbose_callback
from learn_sql_model.tui.app import run_app
tui_app = typer.Typer()
@tui_app.callback(invoke_without_command=True)
def i(
verbose: bool = typer.Option(
False,
callback=verbose_callback,
help="show the log messages",
),
):
"interactive tui"
run_app()