diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2021-05-13 14:39:06 +0200 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-06-11 13:06:06 -0400 |
commit | 5ddd76edd02dd59c2306e1ed12ad7ff2001dc38a (patch) | |
tree | 2f899d7e8d2cf7c669b255b6de0bcf62d3a57a54 /cmd/podman/system/prune.go | |
parent | 2afb5eeab672f6b10cda78f4d6bc152cf1e9a769 (diff) | |
download | podman-5ddd76edd02dd59c2306e1ed12ad7ff2001dc38a.tar.gz podman-5ddd76edd02dd59c2306e1ed12ad7ff2001dc38a.tar.bz2 podman-5ddd76edd02dd59c2306e1ed12ad7ff2001dc38a.zip |
Several shell completion fixes
- fix network filters
- add prune filters
- pod create --share support comma separated namespaces
[NO TESTS NEEDED]
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'cmd/podman/system/prune.go')
-rw-r--r-- | cmd/podman/system/prune.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/podman/system/prune.go b/cmd/podman/system/prune.go index 3020a541b..0f1285564 100644 --- a/cmd/podman/system/prune.go +++ b/cmd/podman/system/prune.go @@ -8,6 +8,7 @@ import ( "strings" "github.com/containers/common/pkg/completion" + "github.com/containers/podman/v3/cmd/podman/common" "github.com/containers/podman/v3/cmd/podman/parse" "github.com/containers/podman/v3/cmd/podman/registry" "github.com/containers/podman/v3/cmd/podman/utils" @@ -50,7 +51,7 @@ func init() { flags.BoolVar(&pruneOptions.Volume, "volumes", false, "Prune volumes") filterFlagName := "filter" flags.StringArrayVar(&filters, filterFlagName, []string{}, "Provide filter values (e.g. 'label=<key>=<value>')") - _ = pruneCommand.RegisterFlagCompletionFunc(filterFlagName, completion.AutocompleteNone) + _ = pruneCommand.RegisterFlagCompletionFunc(filterFlagName, common.AutocompletePruneFilters) } func prune(cmd *cobra.Command, args []string) error { |