Coverage for docs_src/commands/index/tutorial002.py: 100%
8 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 1habcdefg
3app = typer.Typer() 1habcdefg
6@app.command() 1habcdefg
7def create(): 1abcdefg
8 print("Creating user: Hiro Hamada") 1habcdefg
11@app.command() 1habcdefg
12def delete(): 1abcdefg
13 print("Deleting user: Hiro Hamada") 1habcdefg
16if __name__ == "__main__": 1habcdefg
17 app() 1habcdefg