mirror of https://github.com/docker/cli.git
Move bash completion logic to new subcommand: stop
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
04886bca2f
commit
620d0051c8
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue