typer-cli icon indicating copy to clipboard operation
typer-cli copied to clipboard

Expand the path so can complete paths with ~ in them

Open idvorkin opened this issue 3 years ago • 2 comments

idvorkin avatar Mar 07 '22 06:03 idvorkin

@tiangolo - Pushing to top!

idvorkin avatar Mar 13 '22 17:03 idvorkin

pathlib and os.path shouldn't be mixed, you could use Path(path_or_module).expanduser(). strange to use Path on a module though.

pchanial avatar Sep 20 '23 16:09 pchanial

Thanks for the interest @idvorkin! Paths with ~ in them are normally expanded by the shell calling the program (Bash, Zsh, etc). So this shouldn't be necessary.

If you have a specific use case that is not working, it would be great if you can create an example showing it in: https://github.com/tiangolo/typer/discussions/new?category=questions

For now, I'll pass on this one, but thanks for the interest! :cake:


Note: typer-cli is now integrated into Typer itself, when you install pip install typer, you automatically get the typer command too.

The code here is now integrated into typer itself. :rocket:

tiangolo avatar Apr 06 '24 22:04 tiangolo