-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for new click's version autocompletion flag #68
Comments
oridistor
pushed a commit
to oridistor/click-repl
that referenced
this issue
Dec 4, 2019
oridistor
pushed a commit
to oridistor/click-repl
that referenced
this issue
Dec 5, 2019
As I don't like to open an issue and not solve it, here is a CR that does the magic: |
hany
pushed a commit
to hany/click-repl
that referenced
this issue
Mar 2, 2021
This was referenced Feb 2, 2023
auvipy
pushed a commit
that referenced
this issue
Feb 7, 2023
* Moved the code to utils.py: click_repl/__init__.py Splitted code into functions to test : click_repl/utils.py modified: tox.ini * Moved tests to its appropriate test files: tests/test_argument.py Added some more tests: tests/test_basic.py Added some more tests: tests/test_command_collection.py Added some tests: tests/test_complete.py Added some dev functions only tests: tests/test_dev/test_get_internal_cmds.py Added some dev functions only tests: tests/test_dev/test_internal_cmds.py Added some dev functions only tests: tests/test_dev/test_register_internal_cmds.py Added some dev functions only tests: tests/test_dev/test_sys_cmds.py Added some more tests: tests/test_repl.py * Formatted by black: click_repl/__init__.py Formatted by black: click_repl/utils.py Removed mypy config: setup.cfg Formatted by black:: tests/test_command_collection.py * Removed an unnecessary link from the readme * Added long description attribute * Updated README Replaced the link to my repo to the click_repl's main repo * Changed tests badge url to master repo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As we all want arguements and options to be auto completed even if they are not the flag itself - new click versions have added a new flag to option called autocompletion which receives a function that returns a list of possible completions.
This can be seen here:
https://github.com/pallets/click/blob/master/docs/bashcomplete.rst
It can be nice to add a support for this feature as it'll allow us to have a non trivial auto completion quite quickly
The text was updated successfully, but these errors were encountered: