pallets / click

Python composable command line interface toolkit
https://click.palletsprojects.com
BSD 3-Clause "New" or "Revised" License
15.52k stars 1.39k forks source link

Add support for powershell/cmd tab completions for windows #2672

Open Eliav2 opened 7 months ago

Eliav2 commented 7 months ago

Any help or docs about how to implement it would be greatly appreciated.

It looks like click-completion package offer support for powershell for click 7.x and below.

How to apply it for click v8.x that offer 'native' autocompletions?

pwm1234-sri commented 3 months ago

I am also interested in click v8 completion in powershell v7. I am not familiar with how to do this myself, but if someone has pointers I would be willing to look into it.

StephLin commented 1 month ago

There is an auxiliary package StephLin/click-pwsh to provide click v8 shell completion for PowerShell v7. Remark that it may not work for PowerShell legacy versions.

pwm1234-sri commented 1 month ago

Thank you! I will try that out.