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
Dynamic completions #2390
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be nice if we could generate dynamic completions/
choices
on-the-fly when the user presses Tab in their shell. I would like to complete a positional argument or option value that's not from a hardcoded list, but eg loaded from a database.For example, something like:
Typing
app foo ba
Tab would invokechoices('ba')
, which could return['bar']
, and ultimately the shell would complete thetitle
argument with a value found in a database.The text was updated successfully, but these errors were encountered: