mirror of
https://github.com/docker/cli.git
synced 2026-01-23 15:21:32 +03:00
Add bash completion for docker ps --filter expose|publish
Signed-off-by: Harald Albers <github@albersweb.de> Upstream-commit: 6d00b6530b77542600d51ae80bd145c5da6543d3 Component: engine
This commit is contained in:
@@ -1192,6 +1192,9 @@ _docker_container_ls() {
|
||||
__docker_complete_containers_all --cur "${cur##*=}"
|
||||
return
|
||||
;;
|
||||
expose|publish)
|
||||
return
|
||||
;;
|
||||
id)
|
||||
__docker_complete_containers_all --cur "${cur##*=}" --id
|
||||
return
|
||||
@@ -1228,7 +1231,7 @@ _docker_container_ls() {
|
||||
|
||||
case "$prev" in
|
||||
--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
|
||||
return
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user