-
Notifications
You must be signed in to change notification settings - Fork 384
Completion for non invoke programs #414
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
Completion for non invoke programs #414
Conversation
…t and make Invoke example more prominent.
…letion-for-non-invoke-programs
…rections in documentation
…tion, fix two other tests which were doing comparison wrong
|
Thanks for this! Notes in no particular order (with checkboxes so I don't lose track :)):
|
|
Hi thanks for replying.
|
|
I'm definitely in favor of |
|
I did the following:
I did not:
I hope this is much closer to being mergeable now :) |
|
Thanks for the update! Also 👍 about the comments, I probably missed something when I first reviewed, wasn't aware of the suggestion to do the inline |
|
@bitprophet So my idea is that we have sorted out everything - can my work be merged anytime soon? Soon, it will be a year since I did it ... FYI, I just resolved a small merge conflict that came about because master of course keeps changing. It was only about import statements. |
|
Finally back on this now...checklist for self:
|
|
Re: how
What makes me uncomfortable is that we're now treating "your binary name or names" as "a string that is formatted this or that way", even though what we truly want out of it is some list of names. Technically, what we need is one name for use in calling (There's also the issue of replicating data supplied in Anyway, I think this can be (mostly) cleanly solved by:
The downsides:
For now I think it may be worth the "two arguments" version, just to avoid releasing and then supporting a "stringly typed" input. Can always do that substring prefix crap later if we really care. |
|
Ran into an issue with the real world test – one now wants to run the program to generate completion, but if there's no tasks file present when one does this, one gets the ol' At least in my case, I've got no tasks file in my homedir, so putting this in a login dotfile quickly backfires (compared to what was happening before, where the script was static). The script itself does not need a valid tasks file present in order to work right, since it is itself dynamic (kinda the whole point, vs baking in a static snapshot of one's tasks/args periodically). So it wants to be capable of running w/o any tasks file, similar to |
- templatized completion scripts - Program.binary_names now live - tests updated and/or extended - one actually-pointless test removed
Based in part on my screwing around trying to get invoke (installed globally) and fab (installed only in a virtualenv) both completing on my workstation
|
Congrats on finally getting this done! |
This refers to issue 301.