kislyuk / argcomplete

Python and tab completion, better together.
https://kislyuk.github.io/argcomplete/
Apache License 2.0
1.41k stars 133 forks source link

Feature Request: Plumbum support #116

Open henryiii opened 9 years ago

henryiii commented 9 years ago

I'm looking at adding argcomplete support to Plumbum.cli (Someone might also look at Click at some point in the future, hopefully). It's really pretty simple to add directly to Plumbum, since there is no need for monkey patching. I just need a few things:

I have an early proof of concept mentioned here: tomerfiliba/plumbum#212, you can take a look, it supports - and -- options.

kislyuk commented 9 years ago

You raise an interesting question of what to do when two or more programs want to use complete -D. I'm not aware of a good answer for that. Do they stack properly?

It would be nice to define a standard Python shell completions interface, including things like file descriptors, muting, exit semantics, environment variables, etc. I'm open to that possibility, but someone will need to write it up (I can review it) and present it to the community for comments.

Both packages are provided under permissive licenses (Apache and BSD) so you can do whatever you want. I don't have any strong opinions aside from the obvious point that you should think about how these packages will interact and might conflict when simultaneously used in bash and in Python.