Coverage for docs_src / prompt / tutorial004_py39.py: 100%

7 statements  

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

1import typer 1abcdefgh

2from rich.prompt import Prompt 1abcdefgh

3 

4app = typer.Typer() 1abcdefgh

5 

6 

7@app.command() 1abcdefgh

8def main(): 1abcdefgh

9 name = Prompt.ask("Enter your name :sunglasses:") 1abcdefgh

10 print(f"Hey there {name}!") 1abcdefgh

11 

12 

13if __name__ == "__main__": 1abcdefgh

14 app() 1abcdefgh