pytool-template/{{ package_name }}/{{ python_package }}/cli/tui.py.jinja
2023-05-10 18:32:26 -05:00

18 lines
373 B
Django/Jinja

import typer
from {{ python_package }}.cli.common import verbose_callback
from {{ python_package }}.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()