Add zsh completion for 'docker image ls --filter reference'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
This commit is contained in:
parent
b47e3d3adf
commit
f3c9cdadd3
@ -399,11 +399,11 @@ __docker_complete_images_filters() {
|
|||||||
declare -a boolean_opts opts
|
declare -a boolean_opts opts
|
||||||
|
|
||||||
boolean_opts=('true' 'false')
|
boolean_opts=('true' 'false')
|
||||||
opts=('before' 'dangling' 'label' 'since')
|
opts=('before' 'dangling' 'label' 'reference' 'since')
|
||||||
|
|
||||||
if compset -P '*='; then
|
if compset -P '*='; then
|
||||||
case "${${words[-1]%=*}#*=}" in
|
case "${${words[-1]%=*}#*=}" in
|
||||||
(before|since)
|
(before|reference|since)
|
||||||
__docker_complete_images && ret=0
|
__docker_complete_images && ret=0
|
||||||
;;
|
;;
|
||||||
(dangling)
|
(dangling)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user