mirror of https://github.com/docker/cli.git
Add bash completion for `docker ps --filter expose|publish`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
f26c735282
commit
f1cef9c7ab
|
@ -1286,6 +1286,9 @@ _docker_container_ls() {
|
||||||
__docker_complete_containers_all --cur "${cur##*=}"
|
__docker_complete_containers_all --cur "${cur##*=}"
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
expose|publish)
|
||||||
|
return
|
||||||
|
;;
|
||||||
id)
|
id)
|
||||||
__docker_complete_containers_all --cur "${cur##*=}" --id
|
__docker_complete_containers_all --cur "${cur##*=}" --id
|
||||||
return
|
return
|
||||||
|
@ -1322,7 +1325,7 @@ _docker_container_ls() {
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
--filter|-f)
|
--filter|-f)
|
||||||
COMPREPLY=( $( compgen -S = -W "ancestor before exited health id is-task label name network since status volume" -- "$cur" ) )
|
COMPREPLY=( $( compgen -S = -W "ancestor before exited expose health id is-task label name network publish since status volume" -- "$cur" ) )
|
||||||
__docker_nospace
|
__docker_nospace
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue