Coverage for tests/assets/cli/multi_app_cli.py: 100%
13 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 18:26 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 18:26 +0000
1import typer 1habcdefg
3sub_app = typer.Typer() 1habcdefg
6@sub_app.command() 1habcdefg
7def hello(): 1abcdefg
8 typer.echo("sub hello") 1habcdefg
11@sub_app.command() 1habcdefg
12def bye(): 1abcdefg
13 typer.echo("sub bye") 1habcdefg
16cli = typer.Typer() 1habcdefg
17cli.add_typer(sub_app, name="sub") 1habcdefg
20@cli.command() 1habcdefg
21def top(): 1abcdefg
22 typer.echo("top") 1habcdefg