Skip to content
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

Feature/parameter autocompletion #1

Conversation

bb4242
Copy link

@bb4242 bb4242 commented Dec 17, 2015

Adds the ability to dynamically generate completion suggestions via a callback. Documentation and example code has been added. :)

Brett Bethke added 5 commits December 16, 2015 10:12
The callback receives the following data:
 - The current click context. This allows the callback to access any
   parameters that are already present on the command line.
 - The current word being completed. This may be an empty string.
 - The bash COMP_CWORDS and COMP_CWORD variables, in case the callback
   wants to do raw parsing of this data.
@cbandera
Copy link
Owner

Thanks @bb4242, that looks very good.

cbandera added a commit that referenced this pull request Dec 18, 2015
@cbandera cbandera merged commit 40e6f57 into cbandera:feature/parameter_autocompletion Dec 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants