Add bash completion for `docker inspect --type plugin`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-12-10 13:30:45 -08:00 committed by Tibor Vass
parent f25ad6e8b7
commit 0c3697d499
1 changed files with 5 additions and 1 deletions

View File

@ -2293,7 +2293,7 @@ _docker_inspect() {
;; ;;
--type) --type)
if [ -z "$preselected_type" ] ; then if [ -z "$preselected_type" ] ; then
COMPREPLY=( $( compgen -W "container image network node service volume" -- "$cur" ) ) COMPREPLY=( $( compgen -W "container image network node plugin service volume" -- "$cur" ) )
return return
fi fi
;; ;;
@ -2315,6 +2315,7 @@ _docker_inspect() {
$(__docker_images) $(__docker_images)
$(__docker_networks) $(__docker_networks)
$(__docker_nodes) $(__docker_nodes)
$(__docker_plugins_installed)
$(__docker_services) $(__docker_services)
$(__docker_volumes) $(__docker_volumes)
" -- "$cur" ) ) " -- "$cur" ) )
@ -2331,6 +2332,9 @@ _docker_inspect() {
node) node)
__docker_complete_nodes __docker_complete_nodes
;; ;;
plugin)
__docker_complete_plugins_installed
;;
service) service)
__docker_complete_services __docker_complete_services
;; ;;