diff options
author | Paul Holzinger <pholzing@redhat.com> | 2022-04-28 16:02:02 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2022-04-28 16:53:12 +0200 |
commit | cac2b7800b2fa9c037565373b28dfef5ff8dd59f (patch) | |
tree | eb73dfcba82c2bece7233b00b27321844148b21c /cmd/podman/images/history.go | |
parent | cb9a45630f270f825f2285541aefbf5ded37cdae (diff) | |
download | podman-cac2b7800b2fa9c037565373b28dfef5ff8dd59f.tar.gz podman-cac2b7800b2fa9c037565373b28dfef5ff8dd59f.tar.bz2 podman-cac2b7800b2fa9c037565373b28dfef5ff8dd59f.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/history.go')
-rw-r--r-- | cmd/podman/images/history.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/images/history.go b/cmd/podman/images/history.go index 26a4b6c3b..e190941e7 100644 --- a/cmd/podman/images/history.go +++ b/cmd/podman/images/history.go @@ -69,7 +69,7 @@ func historyFlags(cmd *cobra.Command) { formatFlagName := "format" flags.StringVar(&opts.format, formatFlagName, "", "Change the output to JSON or a Go template") - _ = cmd.RegisterFlagCompletionFunc(formatFlagName, common.AutocompleteFormat(entities.ImageHistoryLayer{})) + _ = cmd.RegisterFlagCompletionFunc(formatFlagName, common.AutocompleteFormat(&historyReporter{})) flags.BoolVarP(&opts.human, "human", "H", true, "Display sizes and dates in human readable format") flags.BoolVar(&opts.noTrunc, "no-trunc", false, "Do not truncate the output") |