Skip to content

Feature/parameter autocompletion#1

Merged
cbandera merged 5 commits intocbandera:feature/parameter_autocompletionfrom
bb4242:feature/parameter_autocompletion
Dec 18, 2015
Merged

Feature/parameter autocompletion#1
cbandera merged 5 commits intocbandera:feature/parameter_autocompletionfrom
bb4242:feature/parameter_autocompletion

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