Coverage for tests/assets/cli/extended_app_cli.py: 100%
18 statements
« prev ^ index » next coverage.py v7.6.1, created at 2025-03-10 00:15 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2025-03-10 00:15 +0000
1import typer 1iabcdefgh
3sub_sub_app = typer.Typer() 1iabcdefgh
6@sub_sub_app.command() 1iabcdefgh
7def sub_sub_command(): 1abcdefgh
8 typer.echo("sub_sub_command") 1iabcdefgh
11sub_app = typer.Typer() 1iabcdefgh
12sub_app.add_typer(sub_sub_app, name="sub") 1iabcdefgh
15@sub_app.command() 1iabcdefgh
16def hello(): 1abcdefgh
17 typer.echo("hello there") 1iabcdefgh
20@sub_app.command() 1iabcdefgh
21def bye(): 1abcdefgh
22 typer.echo("bye bye") 1iabcdefgh
25cli = typer.Typer() 1iabcdefgh
26cli.add_typer(sub_app) 1iabcdefgh
29@cli.command() 1iabcdefgh
30def top(): 1abcdefgh
31 typer.echo("top") 1iabcdefgh