Coverage for docs_src/commands/help/tutorial008.py: 100%
5 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 18:26 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 18:26 +0000
1import typer 1abcdefgh
3app = typer.Typer(rich_markup_mode="rich") 1abcdefgh
6@app.command(epilog="Made with :heart: in [blue]Venus[/blue]") 1abcdefgh
7def create(username: str): 1abcdefgh
8 """
9 [green]Create[/green] a new user. :sparkles:
10 """
11 print(f"Creating user: {username}") 1abcdefgh
14if __name__ == "__main__": 1abcdefgh
15 app() 1abcdefgh