Privileged issue
Issue Content
It seems autocompletion for Path types is not working correctly.
from pathlib import Path
import typer
app = typer.Typer()
@app.command()
def f(p: Path):
print(p)
if __name__ == "__main__":
app()
Running that, for example with Typer CLI:
$ typer demo.py run <TAB>
that should show the available files in the current directory. In Zsh it doesn't show the files, in Bash it shows the files.
Then, let's say it's run from the same Typer directory, where the LICENSE file is located:
$ typer demo.py run L<TAB>
That should autocomplete LICENSE, but it only adds TAB/spaces characters.
Privileged issue
Issue Content
It seems autocompletion for
Pathtypes is not working correctly.Running that, for example with Typer CLI:
$ typer demo.py run <TAB>that should show the available files in the current directory. In Zsh it doesn't show the files, in Bash it shows the files.
Then, let's say it's run from the same Typer directory, where the
LICENSEfile is located:$ typer demo.py run L<TAB>That should autocomplete
LICENSE, but it only addsTAB/spaces characters.