summaryrefslogtreecommitdiff
path: root/cmd/podman/common
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-07 11:09:43 +0200
committerGitHub <noreply@github.com>2021-06-07 11:09:43 +0200
commitaca6ef01d8bd265fb5343cf9b8a212f6073a2095 (patch)
treea44018f17f42fcfc64eeaec2f52f3ab0abc9a439 /cmd/podman/common
parent5a209b3d76addbf5ec658a7212a84ae7afce2fee (diff)
parent949374e589876dcf726a9b93c48ac51bb625fed3 (diff)
downloadpodman-aca6ef01d8bd265fb5343cf9b8a212f6073a2095.tar.gz
podman-aca6ef01d8bd265fb5343cf9b8a212f6073a2095.tar.bz2
podman-aca6ef01d8bd265fb5343cf9b8a212f6073a2095.zip
Merge pull request #10567 from adrianreber/2021-06-04-compress
Add support for selectable checkpoint archive compression algorithm
Diffstat (limited to 'cmd/podman/common')
-rw-r--r--cmd/podman/common/completion.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/podman/common/completion.go b/cmd/podman/common/completion.go
index de5b2995a..c93f2017c 100644
--- a/cmd/podman/common/completion.go
+++ b/cmd/podman/common/completion.go
@@ -1211,3 +1211,10 @@ func AutocompleteVolumeFilters(cmd *cobra.Command, args []string, toComplete str
}
return completeKeyValues(toComplete, kv)
}
+
+// AutocompleteCheckpointCompressType - Autocomplete checkpoint compress type options.
+// -> "gzip", "none", "zstd"
+func AutocompleteCheckpointCompressType(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
+ types := []string{"gzip", "none", "zstd"}
+ return types, cobra.ShellCompDirectiveNoFileComp
+}