summaryrefslogtreecommitdiff
path: root/cmd/podman/common/completion.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-24 12:50:59 -0400
committerGitHub <noreply@github.com>2022-05-24 12:50:59 -0400
commit2dc4f752c67e8e8c1035d6e2d689779cdc00004b (patch)
tree69557b4f1002fb85a3cb3c32401adeb7a4484c5b /cmd/podman/common/completion.go
parent7391bdfbbc418adbc85f6643cb67cdbd87fd0b7b (diff)
parent2400d1d52ff4199778781446445eef39a6e2c6b9 (diff)
downloadpodman-2dc4f752c67e8e8c1035d6e2d689779cdc00004b.tar.gz
podman-2dc4f752c67e8e8c1035d6e2d689779cdc00004b.tar.bz2
podman-2dc4f752c67e8e8c1035d6e2d689779cdc00004b.zip
Merge pull request #14341 from vrothberg/todo-part-1
TODO's and FIXME's [PART 1]
Diffstat (limited to 'cmd/podman/common/completion.go')
-rw-r--r--cmd/podman/common/completion.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/podman/common/completion.go b/cmd/podman/common/completion.go
index 099fc267e..c29218d01 100644
--- a/cmd/podman/common/completion.go
+++ b/cmd/podman/common/completion.go
@@ -8,6 +8,7 @@ import (
"strconv"
"strings"
+ libimageDefine "github.com/containers/common/libimage/define"
"github.com/containers/common/libnetwork/types"
"github.com/containers/common/pkg/config"
"github.com/containers/image/v5/pkg/sysregistriesv2"
@@ -496,6 +497,11 @@ func AutocompleteImages(cmd *cobra.Command, args []string, toComplete string) ([
return getImages(cmd, toComplete)
}
+// AutocompleteImageSearchFilters - Autocomplate `search --filter`.
+func AutocompleteImageSearchFilters(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
+ return libimageDefine.SearchFilters, cobra.ShellCompDirectiveNoFileComp
+}
+
// AutocompletePodExitPolicy - Autocomplete pod exit policy.
func AutocompletePodExitPolicy(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
return config.PodExitPolicies, cobra.ShellCompDirectiveNoFileComp