diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-12-01 21:01:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-01 21:01:15 +0100 |
commit | 5d91edc78d5a3a96293cbb22dae85ab8c055fcc6 (patch) | |
tree | 003258ab953a4e52551f89cb16a306453d28439a /cmd/podman/common/completion.go | |
parent | ecc663097a5791fea01e730308528d67d534e44a (diff) | |
parent | 6673ff78d3c5bba1078d9862fccadf0b7fe556fa (diff) | |
download | podman-5d91edc78d5a3a96293cbb22dae85ab8c055fcc6.tar.gz podman-5d91edc78d5a3a96293cbb22dae85ab8c055fcc6.tar.bz2 podman-5d91edc78d5a3a96293cbb22dae85ab8c055fcc6.zip |
Merge pull request #12450 from giuseppe/compression-format
podman, push: expose --compression-format
Diffstat (limited to 'cmd/podman/common/completion.go')
-rw-r--r-- | cmd/podman/common/completion.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/podman/common/completion.go b/cmd/podman/common/completion.go index 4cb29383a..cb3efe592 100644 --- a/cmd/podman/common/completion.go +++ b/cmd/podman/common/completion.go @@ -1289,3 +1289,9 @@ func AutocompleteCheckpointCompressType(cmd *cobra.Command, args []string, toCom types := []string{"gzip", "none", "zstd"} return types, cobra.ShellCompDirectiveNoFileComp } + +// AutocompleteCompressionFormat - Autocomplete compression-format type options. +func AutocompleteCompressionFormat(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { + types := []string{"gzip", "zstd", "zstd:chunked"} + return types, cobra.ShellCompDirectiveNoFileComp +} |