Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Completion for non-Invoke programs #301
I.e. apps like Fabric v2 which leverage
Presently, my local dev workstation has an item in its dotfiles that says
The upshot of that Invoke completion script is that it looks to
So the question is "how should developers using Invoke to drive their own non-
I think this is actually crucial for everyone building their own apps. I'm doing this for an in-house tool right now and I love Invoke for this. It took me as a bash/zsh amateur a while but in the end the actual changes are just two little replacements. For the record, here are my changes to the zsh and bash completion scripts (maybe someone can use these until this issue gets resolved):
Let me know if this is done wrong but I found I had to make these replacements, so that
As for an actual solution for this issue, two quick thoughts:
I'm not familiar with the inner workings of Invoke, but I'd be curious if the latter is possible or deemed useful. If so, I might have a go at it. A more lightweight possibility is that only a
Thanks for the feedback / diff!
I don't have time to rummage around in Program right now, but I thought it already had some field(s) for "what's the name you're usually bound to on the CLI?" - if it does, or if it doesn't and we add one, then yea, a
@bitprophet it seems you are finding some time for invoke at the moment. Any chance my PR for this can be merged in the near future? I can live with my workaround, but to have this supported natively would be nicer. I noticed there is a conflict now but it only concerns two lines of comments. I notice you want to do other work on completion (#339), so merging might become complicated if they both are developed in parallel (I happened to propose to move a the completion folder into the invoke package, that would be my major concern here).