diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-22 09:56:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-22 09:56:28 -0400 |
commit | 8465626e312a582e434851e6e562974cb3e2e1f8 (patch) | |
tree | ca23028eb88c943b22b3d6a970421dc23592ec29 /cmd/podman/volumes/list.go | |
parent | 21c77846e4b441d1da4a27a416c2f4dcd8e68cff (diff) | |
parent | d81021ed265e3cdfe32cdd0082b139f796ff5bfa (diff) | |
download | podman-8465626e312a582e434851e6e562974cb3e2e1f8.tar.gz podman-8465626e312a582e434851e6e562974cb3e2e1f8.tar.bz2 podman-8465626e312a582e434851e6e562974cb3e2e1f8.zip |
Merge pull request #10099 from Luap99/format-completion
Add go template shell completion for --format
Diffstat (limited to 'cmd/podman/volumes/list.go')
-rw-r--r-- | cmd/podman/volumes/list.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/podman/volumes/list.go b/cmd/podman/volumes/list.go index 0d764e988..f402afa94 100644 --- a/cmd/podman/volumes/list.go +++ b/cmd/podman/volumes/list.go @@ -14,6 +14,7 @@ import ( "github.com/containers/podman/v3/cmd/podman/parse" "github.com/containers/podman/v3/cmd/podman/registry" "github.com/containers/podman/v3/cmd/podman/validate" + "github.com/containers/podman/v3/libpod/define" "github.com/containers/podman/v3/pkg/domain/entities" "github.com/pkg/errors" "github.com/spf13/cobra" @@ -60,7 +61,7 @@ func init() { formatFlagName := "format" flags.StringVar(&cliOpts.Format, formatFlagName, "{{.Driver}}\t{{.Name}}\n", "Format volume output using Go template") - _ = lsCommand.RegisterFlagCompletionFunc(formatFlagName, common.AutocompleteJSONFormat) + _ = lsCommand.RegisterFlagCompletionFunc(formatFlagName, common.AutocompleteFormat(define.InspectVolumeData{})) flags.Bool("noheading", false, "Do not print headers") flags.BoolVarP(&cliOpts.Quiet, "quiet", "q", false, "Print volume output in quiet mode") |