mirror of https://github.com/docker/cli.git
Complete paused containers on `docker stop`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
48bd4c6deb
commit
33e0bce89f
|
@ -156,6 +156,11 @@ __docker_complete_containers_running() {
|
||||||
__docker_complete_containers "$@" --filter status=running
|
__docker_complete_containers "$@" --filter status=running
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# shellcheck disable=SC2120
|
||||||
|
__docker_complete_containers_stoppable() {
|
||||||
|
__docker_complete_containers "$@" --filter status=running --filter status=paused
|
||||||
|
}
|
||||||
|
|
||||||
# shellcheck disable=SC2120
|
# shellcheck disable=SC2120
|
||||||
__docker_complete_containers_stopped() {
|
__docker_complete_containers_stopped() {
|
||||||
__docker_complete_containers "$@" --filter status=exited
|
__docker_complete_containers "$@" --filter status=exited
|
||||||
|
@ -2147,7 +2152,7 @@ _docker_container_stop() {
|
||||||
COMPREPLY=( $( compgen -W "--help --time -t" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--help --time -t" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
__docker_complete_containers_running
|
__docker_complete_containers_stoppable
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue