summaryrefslogtreecommitdiff
path: root/cmd/podman/images
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@redhat.com>2022-05-24 10:35:36 +0200
committerValentin Rothberg <vrothberg@redhat.com>2022-05-24 16:07:38 +0200
commitd924c46dae55a8846f33ca3346f5c816df9fbf0d (patch)
tree48deecf04d7e0655dbabb44edad46c81d44892de /cmd/podman/images
parent8af98b342d69a1d4e865339d51448218eecaa995 (diff)
downloadpodman-d924c46dae55a8846f33ca3346f5c816df9fbf0d.tar.gz
podman-d924c46dae55a8846f33ca3346f5c816df9fbf0d.tar.bz2
podman-d924c46dae55a8846f33ca3346f5c816df9fbf0d.zip
autocomplete `podman search --filter`
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'cmd/podman/images')
-rw-r--r--cmd/podman/images/search.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/podman/images/search.go b/cmd/podman/images/search.go
index 335ea2b5a..a18f7a11d 100644
--- a/cmd/podman/images/search.go
+++ b/cmd/podman/images/search.go
@@ -83,8 +83,7 @@ func searchFlags(cmd *cobra.Command) {
filterFlagName := "filter"
flags.StringSliceVarP(&searchOptions.Filters, filterFlagName, "f", []string{}, "Filter output based on conditions provided (default [])")
- // TODO add custom filter function
- _ = cmd.RegisterFlagCompletionFunc(filterFlagName, completion.AutocompleteNone)
+ _ = cmd.RegisterFlagCompletionFunc(filterFlagName, common.AutocompleteImageSearchFilters)
formatFlagName := "format"
flags.StringVar(&searchOptions.Format, formatFlagName, "", "Change the output format to JSON or a Go template")