Move bash completion logic to new subcommand: diff

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-10-19 18:47:59 +02:00 committed by Tibor Vass
parent f560199333
commit 4db49a11a5
1 changed files with 12 additions and 12 deletions

View File

@ -1065,7 +1065,17 @@ _docker_container_exec() {
}
_docker_container_export() {
_docker_export
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
;;
*)
local counter=$(__docker_pos_first_nonflag)
if [ $cword -eq $counter ]; then
__docker_complete_containers_all
fi
;;
esac
}
_docker_container_inspect() {
@ -1441,17 +1451,7 @@ _docker_exec() {
}
_docker_export() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
;;
*)
local counter=$(__docker_pos_first_nonflag)
if [ $cword -eq $counter ]; then
__docker_complete_containers_all
fi
;;
esac
_docker_container_export
}
_docker_help() {