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

Bash competion #7

Open
avaldebe opened this issue Jun 8, 2016 · 2 comments
Open

Bash competion #7

avaldebe opened this issue Jun 8, 2016 · 2 comments

Comments

@avaldebe
Copy link

avaldebe commented Jun 8, 2016

Hi @duncanwp,

I wrote a bash completion script for cis. To use it you jost need to source it as

source cisCompletion.bash
cis [tab] ...

Hope you find this useful enough to add it to the repo.

Cheers,
Álvaro.

@duncanwp
Copy link
Member

duncanwp commented Jun 9, 2016

Hi Alvaro - this is great thanks! I didn't even know you could do this to be honest. My only slight concern is that we have to remember to keep this up to date if we change any of the commands - it's very distinct from the parsing code.

I've also just done a little googling and found this: https://github.com/kislyuk/argcomplete. Have you come across it? It might make things a little easier to manage?

Thanks for the inspiration either way :-)

@avaldebe
Copy link
Author

My only slight concern is that we have to remember to keep this up to
date if we change any of the commands - it's very distinct from the parsing
code.

I agree. Alas, it requires some knowledge of what the arguments do and
which ones expect a file after, so it is not as straightforward as I hoped.

I've also just done a little googling and found this:
https://github.com/kislyuk/argcomplete. Have you come across it? It might
make things a little easier to manage?

I did not know about it. Will have a look.

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

No branches or pull requests

2 participants