mirror of https://github.com/docker/cli.git
Merge pull request #1869 from albers/completion-events--filter-node
Add bash completion for `events --filter node`
This commit is contained in:
commit
3e660c2221
|
@ -5154,6 +5154,10 @@ _docker_system_events() {
|
||||||
__docker_complete_networks --cur "${cur##*=}"
|
__docker_complete_networks --cur "${cur##*=}"
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
node)
|
||||||
|
__docker_complete_nodes --cur "${cur##*=}"
|
||||||
|
return
|
||||||
|
;;
|
||||||
scope)
|
scope)
|
||||||
COMPREPLY=( $( compgen -W "local swarm" -- "${cur##*=}" ) )
|
COMPREPLY=( $( compgen -W "local swarm" -- "${cur##*=}" ) )
|
||||||
return
|
return
|
||||||
|
@ -5170,7 +5174,7 @@ _docker_system_events() {
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
--filter|-f)
|
--filter|-f)
|
||||||
COMPREPLY=( $( compgen -S = -W "container daemon event image label network scope type volume" -- "$cur" ) )
|
COMPREPLY=( $( compgen -S = -W "container daemon event image label network node scope type volume" -- "$cur" ) )
|
||||||
__docker_nospace
|
__docker_nospace
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue