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 — Fix bash completion on chained command arguments by stopthatcow · Pull Request #771 · pallets/click

Conversation

@stopthatcow

@stopthatcow stopthatcow commented Apr 29, 2017 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Enables bash completion on chained command arguments, allows completions with spaces in them, makes bash completion about 10ms faster by exiting python using os._exit() rather than sys.exit(), and updates documentation that was incorrect from PR #755

Fixes #754
Fixes #769

Sorry, something went wrong.

Uh oh!

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

All reactions
Nicholas Wiles added 4 commits April 28, 2017 18:13
Nicholas Wiles
update context parsing th handle chained commands
0588c28
Nicholas Wiles
handle none case in bashautocompletion
7d20e35
Nicholas Wiles
rollback example
8435734
Nicholas Wiles
add completion for chained with arguments
0713453
@stopthatcow

stopthatcow commented Apr 29, 2017

Copy link
Copy Markdown
Contributor Author

@Gig77 Feel free to see if this solves your issue.

All reactions

Sorry, something went wrong.

Uh oh!

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

Nicholas Wiles added 2 commits April 29, 2017 08:57
Nicholas Wiles
update docs on bash completion.
009c980
Nicholas Wiles
Add fast exit for bash completion
3cc837e
@Gig77

Gig77 commented Apr 29, 2017

Copy link
Copy Markdown

It does, thanks a lot!

All reactions

Sorry, something went wrong.

Uh oh!

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

@stopthatcow stopthatcow changed the title Feature/chained completion Fix bash completion on chained command arguments May 1, 2017
@stopthatcow

stopthatcow commented May 2, 2017

Copy link
Copy Markdown
Contributor Author

@untitaker I'd love to get your thoughts on this.

All reactions

Sorry, something went wrong.

Uh oh!

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

@untitaker

untitaker commented May 2, 2017 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

A lot of unrelated things are in this PR, I'm unsure if we want fast_exit. It potentially makes this a pain to test.

All reactions

Sorry, something went wrong.

Uh oh!

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

@stopthatcow

stopthatcow commented May 2, 2017 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

@untitaker good call. I broke this into #772, #773, #774, and #775. I think fast_exit in this specific case is ok because it is only used when bash completion is invoked (something we don't test directly). If we did want to test it we'd just need to launch the test using subprocess. Bzr actually uses this 'trick' in all exit code paths I believe to try to be more responsive as a CLI. I got the inspiration from here.

All reactions

Sorry, something went wrong.

Uh oh!

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

@stopthatcow stopthatcow closed this May 2, 2017
@stopthatcow
stopthatcow deleted the feature/chained_completion branch May 2, 2017 15:30
@untitaker

untitaker commented May 4, 2017

Copy link
Copy Markdown
Contributor

we'd just need to launch the test using subprocess.

not a huge fan of this, but we'll see when we get to test it. I was thinking more about monkeypatching fast_exit.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 13, 2020
@kdeldycke kdeldycke added the shell completion Shell tab completion label Aug 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

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.

Dynamic bash autocompletion should escape blanks Bash auto-complete of options not working properly in command chains

Uh oh!

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

4 participants

@stopthatcow @Gig77 @untitaker @kdeldycke
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.