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