Enable completion for docker images by doringeman · Pull Request #6452 · docker/cli (original) (raw)
- What I did
Enabled completion for docker images.
- How I did it
By adding a new ImageNamesWithBase completion function which offers completion for images present within the local store, including both full image names with tags and base image names (repository names only) when multiple tags exist for the same base name.
- How to verify it
$ ./build/docker images docker/docker-model-<TAB>
docker/docker-model-backend-llamacpp:v0.0.8-rc2-metal docker/docker-model-cli-desktop-module
docker/docker-model-cli-desktop-module:v0.1.32 docker/docker-model-cli-desktop-module:v0.1.33
$ ./build/docker images docker/docker-model-cli-desktop-module
REPOSITORY TAG IMAGE ID CREATED SIZE
docker/docker-model-cli-desktop-module v0.1.33 e0774d732e37 2 months ago 25.4MB
docker/docker-model-cli-desktop-module v0.1.32 a638160de27e 2 months ago 26.9MB
- Human readable description for the release notes
Add image name completion for docker images.
- A picture of a cute animal (not mandatory but encouraged)
Source: https://earth.org/world-lemur-day/.