cli
cli copied to clipboard
feat: `run` and `pull` image completion from hub
- What I did Cobra completions using the Docker Hub v3 image search API. The API is proxied through the docker engine: https://github.com/moby/moby/pull/48692
Completion of images when calling docker run/pull from local images and Docker Hub.
Allows for image search based on partial matches. Also allows image tag search when adding : after the image name.
- How I did it
- How to verify it
Setup completion file https://docs.docker.com/engine/cli/completion/
docker completion <fish|bash|zsh> > <completion file>
docker run [tab][tab]
docker run postg[tab][tab]
docker run postgres:[tab][tab]
docker run postgres:alpine[tab][tab]
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)
Codecov Report
Attention: Patch coverage is 2.40964% with 81 lines in your changes missing coverage. Please review.
Project coverage is 60.47%. Comparing base (
88f1e99) to head (5760a3d).
Additional details and impacted files
@@ Coverage Diff @@
## master #5528 +/- ##
==========================================
- Coverage 60.67% 60.47% -0.21%
==========================================
Files 345 345
Lines 23488 23570 +82
==========================================
+ Hits 14252 14253 +1
- Misses 8263 8344 +81
Partials 973 973