mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #29305 from albers/completion-inspect-plugins
Add bash completion for `docker inspect --type plugin`
This commit is contained in:
commit
9863470c96
1 changed files with 5 additions and 1 deletions
|
@ -2293,7 +2293,7 @@ _docker_inspect() {
|
|||
;;
|
||||
--type)
|
||||
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
|
||||
fi
|
||||
;;
|
||||
|
@ -2315,6 +2315,7 @@ _docker_inspect() {
|
|||
$(__docker_images)
|
||||
$(__docker_networks)
|
||||
$(__docker_nodes)
|
||||
$(__docker_plugins_installed)
|
||||
$(__docker_services)
|
||||
$(__docker_volumes)
|
||||
" -- "$cur" ) )
|
||||
|
@ -2331,6 +2332,9 @@ _docker_inspect() {
|
|||
node)
|
||||
__docker_complete_nodes
|
||||
;;
|
||||
plugin)
|
||||
__docker_complete_plugins_installed
|
||||
;;
|
||||
service)
|
||||
__docker_complete_services
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue