Skip to content
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

Support click (Python command line library) completions #81

Closed
elnuno opened this issue Mar 8, 2017 · 4 comments
Closed

Support click (Python command line library) completions #81

elnuno opened this issue Mar 8, 2017 · 4 comments
Labels

Comments

@elnuno
Copy link

elnuno commented Mar 8, 2017

Click is "a Python package for creating beautiful command line interfaces in a composable way with as little code as necessary". There is a click-completion project that provides support for automagically adding completion support to click-based apps (works with fish, Zsh, Bash and PowerShell so far). It would be totally rad if both could work together to get click completion on clink.

See click-contrib/click-completion#2.

@glehmann
Copy link

glehmann commented Mar 9, 2017

indeed, that would be interesting. We have no knowledge about clink or clink-completions though, so a little guidance on where to begin would be great!

More specifically, click-completion is working by generating a list of possible completions given the current command line being typed by the user. click-completion does not produce a complete set of available arguments or options that can be completed by another tool.
Is it possible to integrate this kind of behavior with clink/click-completions?

@glehmann
Copy link

glehmann commented Mar 9, 2017

BTW, I'm one of the click-completion developers

@elnuno
Copy link
Author

elnuno commented Mar 9, 2017

I think it's possible, we'd need to create a Lua script that has more or less the same behavior the other ones have. I can try to write a quick and dirty one later this week.

@chrisant996
Copy link
Collaborator

Is there still interest in this? I can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants