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

Handle completion of Choices in Tuple Options #761

Conversation

bobwhitelock
Copy link

Completion of Choice option values was recently added, in #681. However, this does not cover Choice values within Tuple options. This commit adds similar handling so completion will cover these option values as well.

Completion of Choice option values was recently added, in
pallets#681. However, this does not cover
Choice values within Tuple options. This commit adds similar handling so
completion will cover these option values as well.
@JDFagan
Copy link

JDFagan commented Jan 2, 2018

I was wondering if this issue was for click (version 6) to support having a click.option of type Tuple whose one tuple is itself a click.Choice type like so?:

@click.option('--route', '-r', default=None, multiple=True, 
              type=(click.Choice(['Accounts', 'Listing', 'Summary'], click.STRING))

@davidism
Copy link
Member

Completion has changed significantly since this PR was posted. Would you or @stopthatcow review this to see if it's still needed and can be rebased?

@davidism davidism added the f:completion feature: shell completion label Mar 6, 2020
@davidism
Copy link
Member

davidism commented Aug 8, 2020

Thanks for working on this. We're rewriting the whole completion system, if this is still and issue after that we'll need to find a new solution that fits with the new system. See #1484 and #1622.

@davidism davidism closed this Aug 8, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
f:completion feature: shell completion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants