GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Handle completion of Choices in Tuple Options by bobwhitelock · Pull Request #761 · pallets/click

Conversation

@bobwhitelock

@bobwhitelock bobwhitelock commented Apr 5, 2017

Copy link
Copy Markdown

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bobwhitelock
Handle completion of Choices in Tuple Options
acf3344
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

JDFagan commented Jan 2, 2018

Copy link
Copy Markdown

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))
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@davidism

davidism commented Sep 13, 2018

Copy link
Copy Markdown
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?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@davidism
davidism requested a review from stopthatcow September 13, 2018 16:30
@davidism davidism added the shell completion Shell tab completion label Mar 6, 2020
@davidism

davidism commented Aug 8, 2020

Copy link
Copy Markdown
Member

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.

bobwhitelock reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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.

Reviewers

@stopthatcow stopthatcow Awaiting requested review from stopthatcow

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

shell completion Shell tab completion

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@bobwhitelock @JDFagan @davidism
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.