click-completion
click-completion copied to clipboard
Add or enhance bash, fish, zsh and powershell completion in Click
I have a kind request to the author here (and happy to help if needed). Currently `click-completion` only publishes .tar.gz package which forces "building" of the package when installing it....
### Question How to run `click_completion.core.install()` command after `pip install` complete installing package? ### Expected result ```bash $ pip install my-click-app # Installing click app # Installing click app completion...
As explained [here](https://click.palletsprojects.com/en/7.x/bashcomplete/?highlight=autocomplete) in the Click documentation, and implemented here: https://github.com/pallets/click/blob/93b1699cde5fbafe8a237f8f0d21c8f687b78f2f/click/_bashcomplete.py#L185, click `Parameter`s have an `autocompletion` argument that is currently not supported in `click-completion`. This small addition rectifies that :)
:sparkles: Add support for user `autocompletion` functions. The current implementation provides completion for options, arguments, and sub-commands with help strings. But if the user provides an `autocompletion` function it is...
Adds a separate class called `InstallConfiguration` which holds the actual configuration for auto completion installation. The reason for this refactoring and feature was to add a way to get the...
See pallets/click#1484 and pallets/click#1622. The documentation can be found here for now: https://click.palletsprojects.com/en/8.0.x/shell-completion/. In the new system: * Each shell can provide completion is a completely different way if needed....
This repo appears to duplicate (and maybe pre-date?) the [official Click completion functionality](https://click.palletsprojects.com/en/8.0.x/shell-completion/?highlight=completion). Is this the predecessor to that/was that rolled into Click core at some point? If so, it...
I tried following the example, but I am unable to get click-completion working with powershell. I could not get the example scripts to work, because they are not directly executable...
``` > python examples\click-completion-command install Error: pwsh is not supported. ``` ``` > powershell Windows PowerShell [...] PS > python examples\click-completion-command install powershell completion installed in b'C:\\Users\\thorsten\\Documents\\WindowsPowerShell\\Microsoft.PowerShell_profile.ps1' ```
This is a follow up on https://github.com/click-contrib/click-completion/issues/6 I think the `-f` flag in the very end of https://github.com/click-contrib/click-completion/blob/master/click_completion/fish.j2#L1 inhibits file completion in my app. I think this is related to...