Move bash completion logic to new subcommand: restart

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-10-20 08:53:02 +02:00 committed by Tibor Vass
parent f533df0821
commit 2a9e70cf34
1 changed files with 15 additions and 15 deletions

View File

@ -1263,7 +1263,20 @@ _docker_container_rename() {
} }
_docker_container_restart() { _docker_container_restart() {
_docker_restart case "$prev" in
--time|-t)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help --time -t" -- "$cur" ) )
;;
*)
__docker_complete_containers_all
;;
esac
} }
_docker_container_rm() { _docker_container_rm() {
@ -2521,20 +2534,7 @@ _docker_rename() {
} }
_docker_restart() { _docker_restart() {
case "$prev" in _docker_container_restart
--time|-t)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help --time -t" -- "$cur" ) )
;;
*)
__docker_complete_containers_all
;;
esac
} }
_docker_rm() { _docker_rm() {