Move bash completion logic to new subcommand: unpause

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 6ac201721ff21425e6a6220fd166c68e34715f10
Component: engine
This commit is contained in:
Harald Albers
2016-10-20 09:18:37 +02:00
parent f55bd670a7
commit cc509b2720

View File

@ -1643,7 +1643,17 @@ _docker_container_top() {
}
_docker_container_unpause() {
_docker_unpause
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
;;
*)
local counter=$(__docker_pos_first_nonflag)
if [ $cword -eq $counter ]; then
__docker_complete_containers_unpauseable
fi
;;
esac
}
_docker_container_update() {
@ -2979,17 +2989,7 @@ _docker_tag() {
}
_docker_unpause() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
;;
*)
local counter=$(__docker_pos_first_nonflag)
if [ $cword -eq $counter ]; then
__docker_complete_containers_unpauseable
fi
;;
esac
_docker_container_unpause
}
_docker_update() {