-
Notifications
You must be signed in to change notification settings - Fork 83
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 completion for 'docker' #40
Comments
@viskin, accepted. However, i'm not a user of Docker, so please don't expect this will be done soon, sorry. |
Also, bash completions will be helpful, thanks. |
For those who are looking for Docker completion in Windows here is the list of currently available solutions:
cc: @viskin |
@vladimir-kotikov do you plan to add the docker-completion? |
@jkoenig134 I don't as I'm not actively working on this project. There's a PR with basic completions here: #73 which you can grab and put along with other lua files in your cmder installation and get these completions working - I'd love to merge that PR but have some concerns about the implementation so still haven't decided about it |
Ok, thank you. I will look at it. |
I see the implementation concerns Vladimir had, and I also see why the implementation was done that way, given limitations in Clink v0.4.9. But newer versions of Clink natively support delayed initialization of argmatchers, so this is very doable now. I'll look at getting docker completions included. |
I am waiting for this feature 👍 |
I know nothing about docker and have never used it. That makes it extremely difficult for me to personally be the one to hook up completions for docker as I have absolutely no way to test them. |
Hi @chrisant996, the docker autocomplete feature exists for other terminals. I know that if I press TAB in the cmder console after typing the letters do, the following results are shown in my case:
If I start any command on cmder, for example "cat " with space at the end and press TAB, cmder shows the files or directories of the actual path. I wrote down some requirements to develop and test this feature. For sure you need to install docker on your machine and pull some small containers in order to test the feature. I can help you in this matter, if you want. Requirements:
Containers: Files or directories:
If you have questions, feel free to contact me. |
That's because you have docker installed. Those are not docker completions, those are filename completions. Docker completions wouldn't start until after you type the program name.
Are you trying to help me understand what completions are and how they work? I'm the maintainer of the Clink program, and I'm familiar with how completions work in general and in Clink. What you described is basic filename completion that happens when there is no argmatcher completion script for a program.
I'm not volunteering to write docker completions. I'm not volunteering to install docker and learn docker. That would be a large investment of my time, for something I don't use (and won't have any reason to use any time in the foreseeable future). If docker completions are to be written, someone who uses docker should do so. I can help with specific questions about how to do various things in Lua when writing completion scripts for Clink. The place to start is the Clink documentation, and especially the section Argument Completion.
Replace "cmder" with "a docker completion script written for clink": Cmder or ConEmu aren't involved in any of the above. The requirements list above can be reduced to a single requirement (everything else is just basics of how completions work in general).
But docker also has commands and flags, and there should be completions for those, as well. |
Docker client is popular tool that now available on Windows:
https://docs.docker.com/windows/step_one/
It comes with bash completion file:
https://github.com/docker/docker/blob/master/contrib/completion/bash/docker
The text was updated successfully, but these errors were encountered: