mirror of https://github.com/docker/cli.git
Support new events in bash completion
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
7e208ef5d0
commit
4e97e95cd8
|
@ -862,7 +862,7 @@ _docker_diff() {
|
||||||
_docker_events() {
|
_docker_events() {
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
--filter|-f)
|
--filter|-f)
|
||||||
COMPREPLY=( $( compgen -S = -W "container event image" -- "$cur" ) )
|
COMPREPLY=( $( compgen -S = -W "container event image label network type volume" -- "$cur" ) )
|
||||||
__docker_nospace
|
__docker_nospace
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
@ -881,16 +881,19 @@ _docker_events() {
|
||||||
COMPREPLY=( $( compgen -W "
|
COMPREPLY=( $( compgen -W "
|
||||||
attach
|
attach
|
||||||
commit
|
commit
|
||||||
|
connect
|
||||||
copy
|
copy
|
||||||
create
|
create
|
||||||
delete
|
delete
|
||||||
destroy
|
destroy
|
||||||
die
|
die
|
||||||
|
disconnect
|
||||||
exec_create
|
exec_create
|
||||||
exec_start
|
exec_start
|
||||||
export
|
export
|
||||||
import
|
import
|
||||||
kill
|
kill
|
||||||
|
mount
|
||||||
oom
|
oom
|
||||||
pause
|
pause
|
||||||
pull
|
pull
|
||||||
|
@ -902,8 +905,10 @@ _docker_events() {
|
||||||
stop
|
stop
|
||||||
tag
|
tag
|
||||||
top
|
top
|
||||||
|
unmount
|
||||||
unpause
|
unpause
|
||||||
untag
|
untag
|
||||||
|
update
|
||||||
" -- "${cur#=}" ) )
|
" -- "${cur#=}" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
@ -912,6 +917,21 @@ _docker_events() {
|
||||||
__docker_complete_images
|
__docker_complete_images
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
*network=*)
|
||||||
|
## BUG: this also triggers after -f type=network
|
||||||
|
cur="${cur#=}"
|
||||||
|
__docker_complete_networks
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
*type=*)
|
||||||
|
COMPREPLY=( $( compgen -W "container image network volume" -- "${cur#=}" ) )
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
*volume=*)
|
||||||
|
cur="${cur#=}"
|
||||||
|
__docker_complete_volumes
|
||||||
|
return
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
|
|
Loading…
Reference in New Issue