-
Notifications
You must be signed in to change notification settings - Fork 21
complete bundle-binstubs subcommand #20
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
ba6205b
Add completion for bundle-binstubs subcommand and options
jasonkarns 04d75b5
Add completions for bundle-binstubs --path, --shebang, and GEM options
jasonkarns 9c99a2a
Add binstubs subcommand to bundle-help completions
jasonkarns 2e3de5f
Skip completing --shebang arguments for now
jasonkarns File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm 50/50 on whether completing the default value for SHEBANG makes any sense. On one hand, it's instructive. But OTOH, if you intend to use the "ruby" shebang, then there's no reason to pass the option+arg in the first place.
So maybe I should just remove these two lines? Either way, I suppose we'd want the behavior the match with
install --shebangcompletion.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we could suggest all commands that have "ruby" in the name?
(I had to include the
grepfilter because I couldn't makecompgenonly return commands in$PATH, not functions, and our own__rubyfunction would pollute the results)This would allow one to see e.g.
jrubyandruby3.4.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps. If that's desirable, that can be its own work? For now, I just removed the --shebang opt-args completion, so
binstubsis consistent withinstall. The main goal of this PR is to support binstub flags like--alland bundled gems.