summaryrefslogtreecommitdiff
path: root/cmd/podman/networks
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2021-05-13 14:39:06 +0200
committerPaul Holzinger <paul.holzinger@web.de>2021-05-17 15:56:11 +0200
commit0d811b23390950d961e431851c2fbe409db493d7 (patch)
tree23d3ea20cbd338c99f78494bd158e706e750a923 /cmd/podman/networks
parentfabaa256676d3cfb611f89922ccaf3405718a6f0 (diff)
downloadpodman-0d811b23390950d961e431851c2fbe409db493d7.tar.gz
podman-0d811b23390950d961e431851c2fbe409db493d7.tar.bz2
podman-0d811b23390950d961e431851c2fbe409db493d7.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/networks')
-rw-r--r--cmd/podman/networks/prune.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/podman/networks/prune.go b/cmd/podman/networks/prune.go
index bcc55f0f4..5f1cbda5f 100644
--- a/cmd/podman/networks/prune.go
+++ b/cmd/podman/networks/prune.go
@@ -6,7 +6,6 @@ import (
"os"
"strings"
- "github.com/containers/common/pkg/completion"
"github.com/containers/podman/v3/cmd/podman/common"
"github.com/containers/podman/v3/cmd/podman/registry"
"github.com/containers/podman/v3/cmd/podman/utils"
@@ -39,7 +38,7 @@ func networkPruneFlags(cmd *cobra.Command, flags *pflag.FlagSet) {
flags.BoolVarP(&force, "force", "f", false, "do not prompt for confirmation")
filterFlagName := "filter"
flags.StringArrayVar(&filter, filterFlagName, []string{}, "Provide filter values (e.g. 'label=<key>=<value>')")
- _ = cmd.RegisterFlagCompletionFunc(filterFlagName, completion.AutocompleteNone)
+ _ = cmd.RegisterFlagCompletionFunc(filterFlagName, common.AutocompletePruneFilters)
}
func init() {