mirror of https://github.com/docker/cli.git
Move bash completion logic to new subcommand: wait
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
d2ef5775b8
commit
4f4c129973
|
@ -1696,7 +1696,14 @@ _docker_container_update() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_docker_container_wait() {
|
_docker_container_wait() {
|
||||||
_docker_wait
|
case "$cur" in
|
||||||
|
-*)
|
||||||
|
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
__docker_complete_containers_all
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -3144,14 +3151,7 @@ _docker_volume() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_docker_wait() {
|
_docker_wait() {
|
||||||
case "$cur" in
|
_docker_container_wait
|
||||||
-*)
|
|
||||||
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
__docker_complete_containers_all
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_docker() {
|
_docker() {
|
||||||
|
|
Loading…
Reference in New Issue