cli icon indicating copy to clipboard operation
cli copied to clipboard

feat: `run` and `pull` image completion from hub

Open Benehiko opened this issue 1 year ago • 1 comments
trafficstars

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

image image image image

- 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)

image

Benehiko avatar Oct 11 '24 08:10 Benehiko

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              

codecov-commenter avatar Oct 11 '24 08:10 codecov-commenter