Coverage for tests / assets / cli / multi_app_norich.py: 100%
13 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-02-09 12:36 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-02-09 12:36 +0000
1import typer 1abcdefgh
3sub_app = typer.Typer() 1abcdefgh
5variable = "Some text" 1abcdefgh
8@sub_app.command() 1abcdefgh
9def hello(name: str = "World", age: int = typer.Option(0, help="The age of the user")): 1abcdefgh
10 """
11 Say Hello
12 """
15@sub_app.command() 1abcdefgh
16def hi(user: str = typer.Argument("World", help="The name of the user to greet")): 1abcdefgh
17 """
18 Say Hi
19 """
22@sub_app.command() 1abcdefgh
23def bye(): 1abcdefgh
24 """
25 Say bye
26 """
29app = typer.Typer(help="Demo App", epilog="The end", rich_markup_mode=None) 1abcdefgh
30app.add_typer(sub_app, name="sub") 1abcdefgh
33@app.command() 1abcdefgh
34def top(): 1abcdefgh
35 """
36 Top command
37 """