Coverage for docs_src/subcommands/tutorial003/towns.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2025-04-14 00:18 +0000

1import typer 1abcdefghi

2 

3app = typer.Typer() 1abcdefghi

4 

5 

6@app.command() 1abcdefghi

7def found(name: str): 1abcdefghi

8 print(f"Founding town: {name}") 1abcdefghi

9 

10 

11@app.command() 1abcdefghi

12def burn(name: str): 1abcdefghi

13 print(f"Burning town: {name}") 1abcdefghi

14 

15 

16if __name__ == "__main__": 1abcdefghi

17 app() 1abcdefghi