Coverage for tests / assets / cli / extended_app_cli.py: 100%

18 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-03-26 21:46 +0000

1import typer 1abcdefg

2 

3sub_sub_app = typer.Typer() 1abcdefg

4 

5 

6@sub_sub_app.command() 1abcdefg

7def sub_sub_command(): 1abcdefg

8 typer.echo("sub_sub_command") 1abcdefg

9 

10 

11sub_app = typer.Typer() 1abcdefg

12sub_app.add_typer(sub_sub_app, name="sub") 1abcdefg

13 

14 

15@sub_app.command() 1abcdefg

16def hello(): 1abcdefg

17 typer.echo("hello there") 1abcdefg

18 

19 

20@sub_app.command() 1abcdefg

21def bye(): 1abcdefg

22 typer.echo("bye bye") 1abcdefg

23 

24 

25cli = typer.Typer() 1abcdefg

26cli.add_typer(sub_app) 1abcdefg

27 

28 

29@cli.command() 1abcdefg

30def top(): 1abcdefg

31 typer.echo("top") 1abcdefg