diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-04-28 16:02:02 +0200 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2022-05-03 13:41:47 -0400 |
commit | 524b536101757e039bafa6dae74e4b45f2a5bd1f (patch) | |
tree | 9f261636a8792470a1ce5b2c385c598c10b59ccb /cmd/podman/images/list.go | |
parent | a9deb5c676cb9c37adb3bdc5cb25dd5e41ea19b6 (diff) | |
download | podman-524b536101757e039bafa6dae74e4b45f2a5bd1f.tar.gz podman-524b536101757e039bafa6dae74e4b45f2a5bd1f.tar.bz2 podman-524b536101757e039bafa6dae74e4b45f2a5bd1f.zip |
image --format: fix add completion for go template
It used the wrong struct so not all fields were listed in the
completion.
Fixes podman images --format and podman image history --format
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'cmd/podman/images/list.go')
-rw-r--r-- | cmd/podman/images/list.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/images/list.go b/cmd/podman/images/list.go index 58fb3e919..81011f9b1 100644 --- a/cmd/podman/images/list.go +++ b/cmd/podman/images/list.go @@ -94,7 +94,7 @@ func imageListFlagSet(cmd *cobra.Command) { formatFlagName := "format" flags.StringVar(&listFlag.format, formatFlagName, "", "Change the output format to JSON or a Go template") - _ = cmd.RegisterFlagCompletionFunc(formatFlagName, common.AutocompleteFormat(entities.ImageSummary{})) + _ = cmd.RegisterFlagCompletionFunc(formatFlagName, common.AutocompleteFormat(&imageReporter{})) flags.BoolVar(&listFlag.digests, "digests", false, "Show digests") flags.BoolVarP(&listFlag.noHeading, "noheading", "n", false, "Do not print column headings") |