From 6673ff78d3c5bba1078d9862fccadf0b7fe556fa Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 30 Nov 2021 14:00:10 +0100 Subject: podman, push: expose --compression-format support overriding the compression format at push time. Signed-off-by: Giuseppe Scrivano --- cmd/podman/common/completion.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd/podman/common/completion.go') 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 +} -- cgit v1.2.3-54-g00ecf