diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-10 13:32:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-10 13:32:41 -0500 |
commit | 6823a5d6cc771ed3c031518a759670dff7ee81b5 (patch) | |
tree | 29cf170f3139aca41dc7d2d182de729be1dec9d0 /cmd/podman | |
parent | 2bb149034bd67dd4027768863fed2fce853833ae (diff) | |
parent | 15cdcdca76f1cd21bd5f61edadec2fb7df307b1e (diff) | |
download | podman-6823a5d6cc771ed3c031518a759670dff7ee81b5.tar.gz podman-6823a5d6cc771ed3c031518a759670dff7ee81b5.tar.bz2 podman-6823a5d6cc771ed3c031518a759670dff7ee81b5.zip |
Merge pull request #8664 from rhatdan/prune
Add --filter to podman system prune
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/system/prune.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/system/prune.go b/cmd/podman/system/prune.go index f57689584..5ee017581 100644 --- a/cmd/podman/system/prune.go +++ b/cmd/podman/system/prune.go @@ -46,6 +46,9 @@ func init() { flags.BoolVarP(&force, "force", "f", false, "Do not prompt for confirmation. The default is false") flags.BoolVarP(&pruneOptions.All, "all", "a", false, "Remove all unused data") flags.BoolVar(&pruneOptions.Volume, "volumes", false, "Prune volumes") + filterFlagName := "filter" + flags.StringArrayVar(&pruneOptions.Filter, filterFlagName, []string{}, "Provide filter values (e.g. 'label=<key>=<value>')") + _ = pruneCommand.RegisterFlagCompletionFunc(filterFlagName, completion.AutocompleteNone) } |