1
0
mirror of https://github.com/docker/cli.git synced 2026-01-16 20:22:36 +03:00

Move bash completion logic to new subcommand: start

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f58b6746d7
Component: cli
This commit is contained in:
Harald Albers
2016-10-20 09:11:25 +02:00
committed by Tibor Vass
parent ed642954ab
commit 4482a5552b

View File

@@ -1582,7 +1582,16 @@ _docker_container_run() {
}
_docker_container_start() {
_docker_start
__docker_complete_detach-keys && return
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--attach -a --detach-keys --help --interactive -i" -- "$cur" ) )
;;
*)
__docker_complete_containers_stopped
;;
esac
}
_docker_container_stats() {
@@ -2900,16 +2909,7 @@ _docker_search() {
}
_docker_start() {
__docker_complete_detach-keys && return
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--attach -a --detach-keys --help --interactive -i" -- "$cur" ) )
;;
*)
__docker_complete_containers_stopped
;;
esac
_docker_container_start
}
_docker_stats() {