Coverage for docs_src / commands / help / tutorial008.py: 100%

5 statements  

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

1import typer 1abcdefghij

2 

3app = typer.Typer(rich_markup_mode="rich") 1abcdefghij

4 

5 

6@app.command(epilog="Made with :heart: in [blue]Venus[/blue]") 1abcdefghij

7def create(username: str): 1abcdefghij

8 """ 

9 [green]Create[/green] a new user. :sparkles: 

10 """ 

11 print(f"Creating user: {username}") 1abcdefghij

12 

13 

14if __name__ == "__main__": 1abcdefghij

15 app() 1abcdefghij