Move bash completion logic to new subcommand: stop

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-10-20 09:14:23 +02:00 committed by Tibor Vass
parent 04886bca2f
commit 620d0051c8
1 changed files with 15 additions and 15 deletions

View File

@ -1612,7 +1612,20 @@ _docker_container_stats() {
}
_docker_container_stop() {
_docker_stop
case "$prev" in
--time|-t)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help --time -t" -- "$cur" ) )
;;
*)
__docker_complete_containers_running
;;
esac
}
_docker_container_top() {
@ -2930,20 +2943,7 @@ _docker_stats() {
}
_docker_stop() {
case "$prev" in
--time|-t)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help --time -t" -- "$cur" ) )
;;
*)
__docker_complete_containers_running
;;
esac
_docker_container_stop
}
_docker_tag() {