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

Add shell completion for CLI commands #30

Open
imrehg opened this issue Mar 6, 2020 · 3 comments
Open

Add shell completion for CLI commands #30

imrehg opened this issue Mar 6, 2020 · 3 comments

Comments

@imrehg
Copy link
Member

imrehg commented Mar 6, 2020

For bash (the platform's shell) and zsh (as common for developers) at least, though likely a single solution should (?) work for both. It might be actually not too tough, as Click (that the CLI uses) does help with that https://click.palletsprojects.com/en/7.x/bashcomplete/

@imrehg
Copy link
Member Author

imrehg commented Mar 6, 2020

And it might actually quite close, needing documentation in the first stage, as per following the Click docs of activating it https://click.palletsprojects.com/en/7.x/bashcomplete/#activation already yields some results:

Screenshot_2020-03-06_08-22-16

But it would be good to expand on this, so include completion of dynamic elements (e.g. server names, project names, as appropriate) for high class usability.

@srstevenson
Copy link
Contributor

There's a PR open for this in #22 -- the PR is stalled, but I've been using it locally without problems for some time.

@imrehg
Copy link
Member Author

imrehg commented Mar 7, 2020 via email

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

No branches or pull requests

2 participants