mirror of
https://github.com/containers/podman.git
synced 2025-07-29 11:22:38 +08:00
Fix shell completion for ps --filter ancestor
The `ancestor` option was missing an equal sign. Therefore the completion did not work as expected. Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This commit is contained in:
@ -861,7 +861,7 @@ func AutocompletePsFilters(cmd *cobra.Command, args []string, toComplete string)
|
|||||||
"status=": func(_ string) ([]string, cobra.ShellCompDirective) {
|
"status=": func(_ string) ([]string, cobra.ShellCompDirective) {
|
||||||
return containerStatuses, cobra.ShellCompDirectiveNoFileComp
|
return containerStatuses, cobra.ShellCompDirectiveNoFileComp
|
||||||
},
|
},
|
||||||
"ancestor": func(s string) ([]string, cobra.ShellCompDirective) { return getImages(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) },
|
"before=": func(s string) ([]string, cobra.ShellCompDirective) { return getContainers(cmd, s, completeDefault) },
|
||||||
"since=": 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) },
|
"volume=": func(s string) ([]string, cobra.ShellCompDirective) { return getVolumes(cmd, s) },
|
||||||
|
Reference in New Issue
Block a user