init
This commit is contained in:
parent
aac78ff993
commit
daced3babb
24 changed files with 1485 additions and 47 deletions
18
{{ package_name }}/{{ python_package }}/cli/tui.py.jinja
Normal file
18
{{ package_name }}/{{ python_package }}/cli/tui.py.jinja
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue