Merge pull request #5554 from albers/fix-completion-events-filter-daemon

Fix bash completion for `events --filter daemon=`
This commit is contained in:
Sebastiaan van Stijn 2024-10-19 17:55:12 +02:00 committed by GitHub
commit 062eecf14a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -5081,7 +5081,7 @@ _docker_system_events() {
return
;;
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##*=}" ) )
return
;;