diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2020-11-19 21:11:29 +0100 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2020-11-23 13:18:34 +0100 |
commit | 2e8ed5edf720f2ec7ed641ae92ee368d0ffe9cf2 (patch) | |
tree | be17143b6e0b28827699d23ce9404828c76ad0df /cmd/podman/images | |
parent | 79ab19ab8bbc069c06e47e45dd51e34a35d6a35f (diff) | |
download | podman-2e8ed5edf720f2ec7ed641ae92ee368d0ffe9cf2.tar.gz podman-2e8ed5edf720f2ec7ed641ae92ee368d0ffe9cf2.tar.bz2 podman-2e8ed5edf720f2ec7ed641ae92ee368d0ffe9cf2.zip |
more shell completion improvements
* podman image ls --filter
* podman network ls --filter
* podman volume ls --filter
* podman network connect/disconnect
* podman events --filter
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'cmd/podman/images')
-rw-r--r-- | cmd/podman/images/list.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/podman/images/list.go b/cmd/podman/images/list.go index 4692699f2..bcb31e6ee 100644 --- a/cmd/podman/images/list.go +++ b/cmd/podman/images/list.go @@ -79,8 +79,7 @@ func imageListFlagSet(cmd *cobra.Command) { filterFlagName := "filter" flags.StringSliceVarP(&listOptions.Filter, filterFlagName, "f", []string{}, "Filter output based on conditions provided (default [])") - // TODO: add completion function for filters - _ = cmd.RegisterFlagCompletionFunc(filterFlagName, completion.AutocompleteNone) + _ = cmd.RegisterFlagCompletionFunc(filterFlagName, common.AutocompleteImageFilters) formatFlagName := "format" flags.StringVar(&listFlag.format, formatFlagName, "", "Change the output format to JSON or a Go template") |