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

13 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-02-09 12:36 +0000

1import typer 1abcdefgh

2 

3sub_app = typer.Typer() 1abcdefgh

4 

5 

6@sub_app.command() 1abcdefgh

7def hello(): 1abcdefgh

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

9 

10 

11@sub_app.command() 1abcdefgh

12def bye(): 1abcdefgh

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

14 

15 

16cli = typer.Typer() 1abcdefgh

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

18 

19 

20@cli.command() 1abcdefgh

21def top(): 1abcdefgh

22 typer.echo("top") 1abcdefgh