-
-
Notifications
You must be signed in to change notification settings - Fork 853
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I try to install auto completion by running python main.py --install-completion pwsh and it executes successfully. But I only get path hint but not command hint.
To Reproduce
- Create a file
main.pywith:
import typer
def complete_name():
return ["Camila", "Carlos", "Sebastian"]
def main(
name: str = typer.Option(
"World", help="The name to say hi to.", autocompletion=complete_name
)
):
typer.echo(f"Hello {name}")
if __name__ == "__main__":
typer.run(main)- Run
python main.py --install-completion pwsh
Expected behavior
just help me complete commands
Screenshots
Environment
- OS: Windows10
- Typer Version: 0.3.2
- python version: 3.9.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
