test em
This commit is contained in:
parent
daf81343bf
commit
a2b33b25f8
11 changed files with 479 additions and 55 deletions
|
|
@ -10,12 +10,12 @@ from learn_sql_model.cli.tui import tui_app
|
|||
|
||||
app = typer.Typer(
|
||||
name="learn_sql_model",
|
||||
help="A rich terminal report for coveragepy.",
|
||||
help="learn-sql-model cli for managing the project",
|
||||
)
|
||||
app.add_typer(config_app)
|
||||
app.add_typer(tui_app)
|
||||
app.add_typer(model_app)
|
||||
app.add_typer(api_app)
|
||||
app.add_typer(config_app, name="config")
|
||||
app.add_typer(tui_app, name="tui")
|
||||
app.add_typer(model_app, name="model")
|
||||
app.add_typer(api_app, name="api")
|
||||
app.add_typer(hero_app, name="hero")
|
||||
|
||||
|
||||
|
|
@ -38,6 +38,17 @@ def version_callback(value: bool) -> None:
|
|||
raise typer.Exit()
|
||||
|
||||
|
||||
@app.callback()
|
||||
def main(
|
||||
version: bool = typer.Option(
|
||||
False,
|
||||
callback=version_callback,
|
||||
help="show the version of the learn-sql-model package.",
|
||||
),
|
||||
):
|
||||
"configuration cli"
|
||||
|
||||
|
||||
@app.command()
|
||||
def tui(ctx: typer.Context) -> None:
|
||||
Trogon(get_group(app), click_context=ctx).run()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue