8000 Fish completion now supports dynamic completions by bittrance · Pull Request #2144 · urfave/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fish completion now supports dynamic completions #2144

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bittrance
Copy link
Contributor

Leaving this 8000 PR as draft for the moment as I presume there will be nuances once I start using it in my own project.

What type of PR is this?

  • feature

What this PR does / why we need it:

This PR delegates to the completion flag strategy when the command has a ShellComplete function. This hybrid strategy builds on the assumption that it is cheaper (better ux) to use fish built-in completion when possible and only invoke the binary with completion flag when necessary.

Special notes for your reviewer:

This PR removes the blanket application of the default shell completion and instead invokes it command.ShellComplete == nil. I don't think this is an issue, but it does change the contract slightly.

Release Notes

Fish completion now supports dynamic completions.

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.

1 participant
0