-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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 completion for fig command #639
Conversation
Very nice - will give it a try later. Some docs would be great (including how to set it up in zsh, for us snobs). Not sure where would be best - perhaps |
I think the only documentation needed is how to install the completion. If completion were part of the next release, e.g. 1.0.2, the install instructions in
I don't know how to use this in zsh. I tried @lePoxy's trick from #338 but was unseccusful:
This is probably because |
By the way, are there any ways to join with Docker's release channels? I'd really like to see an officially signed Ubuntu package with the fig binary and completion that can be installed from the Docker repository, see https://docs.docker.com/installation/ubuntulinux/. |
f689095
to
bf6bacc
Compare
Added support for new |
bf6bacc
to
6f8be4e
Compare
a08f5cf
to
3b3c388
Compare
LGTM I think packaging this up in a deb/rpm can wait. Just making it avaiable in contrib for now is nice. I'd really like to replace the pyinstaller packaging with something else for linux. |
Is there any chance to get this into the next milestone (or merged)? |
ping @aanand :) |
@albers Still waiting for docs - I don't actually know how to install and test this myself. |
616e889
to
3b0035d
Compare
@aanand As desired, I added documentation about installation and usage. Please review. The wording might need some polishing as I'm not a native speaker. Please let me know. The download link will have to be adjusted with the next release. |
618242f
to
e47ff42
Compare
Great stuff. It took me a while to get this working, which I think points to a few documentation refinements:
I also had two other thoughts:
|
e47ff42
to
c5a0213
Compare
c5a0213
to
4991f2f
Compare
Signed-off-by: Harald Albers <github@albersweb.de>
Signed-off-by: Harald Albers <github@albersweb.de>
4991f2f
to
2406a39
Compare
Added support for new option |
LGTM |
It's looking good. Once the |
If this is good, why don't we merge it now before the rename? |
My thoughts. Also, iirc a |
OK, going to merge and add a TODO to #835. |
LGTM |
Bash completion for fig command
Thanks @aanand! (Lol noticed my s/machine/compose/ typo) |
Thanks!
The last line of the completion script registers the completion function |
This closes #338. |
Ooh, that's nice! Not too familiar with completion scripts, but that's handy :) Thanks for your contribution! |
I'm working on a zsh equivalent. |
Bash completion for fig command Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
This work is based on the wonderful bash completion for the docker command.
I placed it in the same location as in the docker repository.