chitoku-k / fzf-zsh-completions

Fuzzy completions for fzf and Zsh (git, kubectl, docker, ...)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support completion for docker inspect

chitoku-k opened this issue · comments

docker inspect is a handy feature to show detailed information for docker objects. The completion for this command has not been supported because inspect subcommand does not distinguish its object type by default and I finally came up with an idea as to how this can properly be implemented.

Default

The following state should complete docker containers, considering the containers as default:

$ docker inspect **<TAB>

Types

Each of following types should complete containers, images, and tasks respectively:

$ docker inspect --type=container **<TAB>
$ docker inspect --type=image **<TAB>
$ docker inspect --type=task **<TAB>