summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-02 13:58:30 +0100
committerGitHub <noreply@github.com>2020-12-02 13:58:30 +0100
commitd28874b2f4bc4f522ed2dc63412e9ddfea011fac (patch)
treeef118f497f61f9fb4a49a1b342b780bbe7659dfa /cmd/podman
parent9c5fe954cca8b4bcb8f552645e1f52a5d9824134 (diff)
parenta3ddedda49932095a1dea440046054cf945f2295 (diff)
downloadpodman-d28874b2f4bc4f522ed2dc63412e9ddfea011fac.tar.gz
podman-d28874b2f4bc4f522ed2dc63412e9ddfea011fac.tar.bz2
podman-d28874b2f4bc4f522ed2dc63412e9ddfea011fac.zip
Merge pull request #8550 from Luap99/fix-completion-ancestor-filter
Fix shell completion for ps --filter ancestor
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/common/completion.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/podman/common/completion.go b/cmd/podman/common/completion.go
index 9856e46ef..7fed15e5e 100644
--- a/cmd/podman/common/completion.go
+++ b/cmd/podman/common/completion.go
@@ -861,10 +861,10 @@ func AutocompletePsFilters(cmd *cobra.Command, args []string, toComplete string)
"status=": func(_ string) ([]string, cobra.ShellCompDirective) {
return containerStatuses, cobra.ShellCompDirectiveNoFileComp
},
- "ancestor": func(s string) ([]string, cobra.ShellCompDirective) { return getImages(cmd, s) },
- "before=": func(s string) ([]string, cobra.ShellCompDirective) { return getContainers(cmd, s, completeDefault) },
- "since=": func(s string) ([]string, cobra.ShellCompDirective) { return getContainers(cmd, s, completeDefault) },
- "volume=": func(s string) ([]string, cobra.ShellCompDirective) { return getVolumes(cmd, s) },
+ "ancestor=": func(s string) ([]string, cobra.ShellCompDirective) { return getImages(cmd, s) },
+ "before=": func(s string) ([]string, cobra.ShellCompDirective) { return getContainers(cmd, s, completeDefault) },
+ "since=": func(s string) ([]string, cobra.ShellCompDirective) { return getContainers(cmd, s, completeDefault) },
+ "volume=": func(s string) ([]string, cobra.ShellCompDirective) { return getVolumes(cmd, s) },
"health=": func(_ string) ([]string, cobra.ShellCompDirective) {
return []string{define.HealthCheckHealthy,
define.HealthCheckUnhealthy}, cobra.ShellCompDirectiveNoFileComp