summaryrefslogtreecommitdiff
path: root/cmd/podman/pods/ps.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-08-27 07:23:26 -0400
committerGitHub <noreply@github.com>2021-08-27 07:23:26 -0400
commit6f61ef87afe6695ca6cbd6e3b818ef619b6d54da (patch)
tree7fc34428445851eb790943050a4c68074a516133 /cmd/podman/pods/ps.go
parent94c37d7d470871f9d63b32c97094f5faab1e8a08 (diff)
parentab6c43f3e072d088149c4f5371e0e53ff14ec7ff (diff)
downloadpodman-6f61ef87afe6695ca6cbd6e3b818ef619b6d54da.tar.gz
podman-6f61ef87afe6695ca6cbd6e3b818ef619b6d54da.tar.bz2
podman-6f61ef87afe6695ca6cbd6e3b818ef619b6d54da.zip
Merge pull request #11337 from Luap99/anon-template
Shell completion for --format with anonymous fields
Diffstat (limited to 'cmd/podman/pods/ps.go')
-rw-r--r--cmd/podman/pods/ps.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/pods/ps.go b/cmd/podman/pods/ps.go
index 14e3e2ea9..60aadf224 100644
--- a/cmd/podman/pods/ps.go
+++ b/cmd/podman/pods/ps.go
@@ -57,7 +57,7 @@ func init() {
formatFlagName := "format"
flags.StringVar(&psInput.Format, formatFlagName, "", "Pretty-print pods to JSON or using a Go template")
- _ = psCmd.RegisterFlagCompletionFunc(formatFlagName, common.AutocompleteFormat(ListPodReporter{}))
+ _ = psCmd.RegisterFlagCompletionFunc(formatFlagName, common.AutocompleteFormat(ListPodReporter{ListPodsReport: &entities.ListPodsReport{}}))
flags.Bool("noheading", false, "Do not print headers")
flags.BoolVar(&psInput.Namespace, "namespace", false, "Display namespace information of the pod")