summaryrefslogtreecommitdiff
path: root/cmd/podman/pods
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-11-19 20:25:51 +0100
committerGitHub <noreply@github.com>2020-11-19 20:25:51 +0100
commita18365c908d45a8ee9348c5e32a240a7b9a4091b (patch)
treeaee2cc327eb132da62ec42960dd165413dc6e41d /cmd/podman/pods
parent541e13c4f0e66be836d665b019fdeabf1e172906 (diff)
parent599b1ed839cdc288334c5cfc557fd37e798fa575 (diff)
downloadpodman-a18365c908d45a8ee9348c5e32a240a7b9a4091b.tar.gz
podman-a18365c908d45a8ee9348c5e32a240a7b9a4091b.tar.bz2
podman-a18365c908d45a8ee9348c5e32a240a7b9a4091b.zip
Merge pull request #8398 from Luap99/ps-filter-completions
Shell completion for podman ps and podman pod ps --filter
Diffstat (limited to 'cmd/podman/pods')
-rw-r--r--cmd/podman/pods/ps.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/podman/pods/ps.go b/cmd/podman/pods/ps.go
index 51c2e92f0..99d324411 100644
--- a/cmd/podman/pods/ps.go
+++ b/cmd/podman/pods/ps.go
@@ -57,8 +57,7 @@ func init() {
filterFlagName := "filter"
flags.StringSliceVarP(&inputFilters, filterFlagName, "f", []string{}, "Filter output based on conditions given")
- //TODO complete filters
- _ = psCmd.RegisterFlagCompletionFunc(filterFlagName, completion.AutocompleteNone)
+ _ = psCmd.RegisterFlagCompletionFunc(filterFlagName, common.AutocompletePodPsFilters)
formatFlagName := "format"
flags.StringVar(&psInput.Format, formatFlagName, "", "Pretty-print pods to JSON or using a Go template")