Giter Site home page Giter Site logo

Comments (7)

matt9ucci avatar matt9ucci commented on August 18, 2024 3

@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

from posh-docker.

samneirinck avatar samneirinck commented on August 18, 2024 1

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:

  1. I can accept PR's, comment on issues, etc, but I'm also willing to give some other people the permissions to do the same. Since I'm no longer using it myself, the project is probably better off with some active maintainers, who are dedicated to support the latest features or bug fixes.
  2. With regards to a list of issues, I think the main issue is to support management commands. However, as noted before, it might involve some serious rework of the module (no longer based on only regex).

Let me know what you all think would be the best way to proceed.

from posh-docker.

samneirinck avatar samneirinck commented on August 18, 2024 1

I've updated the README to clarify the current status, and point to the DockerCompletion github page.

from posh-docker.

StefanScherer avatar StefanScherer commented on August 18, 2024

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.

from posh-docker.

BretFisher avatar BretFisher commented on August 18, 2024

@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!

from posh-docker.

matt9ucci avatar matt9ucci commented on August 18, 2024

@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.

from posh-docker.

samneirinck avatar samneirinck commented on August 18, 2024

Perhaps we can just add a note to the READNE here then to point towards @matt9ucci's excellent work?

from posh-docker.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.