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

13 statements  

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

1import typer 1abcdefg

2 

3sub_app = typer.Typer() 1abcdefg

4 

5 

6@sub_app.command() 1abcdefg

7def hello(): 1abcdefg

8 typer.echo("sub hello") 1abcdefg

9 

10 

11@sub_app.command() 1abcdefg

12def bye(): 1abcdefg

13 typer.echo("sub bye") 1abcdefg

14 

15 

16cli = typer.Typer() 1abcdefg

17cli.add_typer(sub_app, name="sub") 1abcdefg

18 

19 

20@cli.command() 1abcdefg

21def top(): 1abcdefg

22 typer.echo("top") 1abcdefg