diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-05-17 16:14:59 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-05-19 14:04:10 +0200 |
commit | 318e95fd2a9a8b1bcd0f1caec4612335cc1ee591 (patch) | |
tree | 79329c2589d6330ddc905af469dc579ed9100261 /libpod/events | |
parent | 9915b8f599da2f179c8dd1bff7951141a7bdaa1b (diff) | |
download | podman-318e95fd2a9a8b1bcd0f1caec4612335cc1ee591.tar.gz podman-318e95fd2a9a8b1bcd0f1caec4612335cc1ee591.tar.bz2 podman-318e95fd2a9a8b1bcd0f1caec4612335cc1ee591.zip |
shell completion: fix podman event --filter values
The completion suggested incorrect values for `podman events --filter
type=` . It should only list types not the event status. Also make sure
to use the constants instead of duplicating the strings.
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'libpod/events')
-rw-r--r-- | libpod/events/config.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/events/config.go b/libpod/events/config.go index 00cdca007..2e7016136 100644 --- a/libpod/events/config.go +++ b/libpod/events/config.go @@ -98,6 +98,8 @@ type Type string // Status describes the actual event action (stop, start, create, kill) type Status string +// When updating this list below please also update the shell completion list in +// cmd/podman/common/completion.go and the StringToXXX function in events.go. const ( // Container - event is related to containers Container Type = "container" |