mirror of https://github.com/docker/cli.git
Merge pull request #5554 from albers/fix-completion-events-filter-daemon
Fix bash completion for `events --filter daemon=`
This commit is contained in:
commit
062eecf14a
|
@ -5081,7 +5081,7 @@ _docker_system_events() {
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
daemon)
|
daemon)
|
||||||
local name=$(__docker_q info | sed -n 's/^\(ID\|Name\): //p')
|
local name=$(__docker_q info --format '{{.Info.Name}} {{.Info.ID}}')
|
||||||
COMPREPLY=( $( compgen -W "$name" -- "${cur##*=}" ) )
|
COMPREPLY=( $( compgen -W "$name" -- "${cur##*=}" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue