Open BretFisher opened 6 years ago
Thanks Captain @BretFisher ;-) I encourage my team to use WSL right now, but for the community the posh-docker is still very useful to have same tab expansion experience like in bash.
Thanks for bringing this to my attention. It's true the project has been pretty silent for quite a while, mainly due to the fact I've switched to bash+WSL to interact with Docker/Kubernetes.
I've tried a few times to introduce support for the management commands, however the implementation was not so trivial, based on the regex approach I used for the tab completion. Other tab completions for docker, like bash, fish, ... use a more extensive system, pretty much handling each command separately. This allows them to clearly identify what should be completed in any scenario. I've done some initial prototyping on this in the pester-tests branch.
To answer your 2 questions:
Let me know what you all think would be the best way to proceed.
@BretFisher @StefanScherer @samneirinck Here's my completion module "DockerCompletion" working for the management commands. It is customizable and not based on the regex approach (See this and this).
Note: It requires PowerShell >= 5.0 and docker cli >= 1.13
@matt9ucci This looks great, do you consider it a replacement for posh-docker? (superset). It looks like you've had it awhile, I'll give it a shot!
@BretFisher Yes. The DockerCompletion works roughly the same as the bash completion for docker. I have started to develop it last year. The latest version supports Docker v18.03.0. The next release will support v18.06.0. Feedback is welcomed!
I think posh-docker is good for the users who use PowerShell v4.0 or lower and Docker v1.12 or lower. But for the users who use PowerShell v5.0+, including PowerShell Core, and Docker v1.13+, the DockerCompletion should be useful.
Perhaps we can just add a note to the READNE here then to point towards @matt9ucci's excellent work?
I've updated the README to clarify the current status, and point to the DockerCompletion github page.
Hey @samneirinck, I know a lot of docker users that would love this updated to current CLI commands and sub-commands, options, etc.
Maybe we Docker Captains can help spread the word and get you some help with fixes and new features, but I have two questions first:
Are you still willing to lead this repo by accepting PR's, commenting on issues, etc? It would be great if we could use the same PowerShell Module name and repo.
Can you describe a list of issues or needed features to get it working with old and new command format and options?
CC: @StefanScherer