From 47eeb02c7a778890d102b89f9a352c664df1dda1 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Sat, 16 Jan 2021 18:54:59 +0100 Subject: Rename AutocompletePortCommand func This function is now used for the port and rename command. Rename it to AutocompleteContainerOneArg. Signed-off-by: Paul Holzinger --- cmd/podman/common/completion.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/podman/common') diff --git a/cmd/podman/common/completion.go b/cmd/podman/common/completion.go index d01842998..c9a3c5e94 100644 --- a/cmd/podman/common/completion.go +++ b/cmd/podman/common/completion.go @@ -517,8 +517,8 @@ func AutocompleteRunlabelCommand(cmd *cobra.Command, args []string, toComplete s return nil, cobra.ShellCompDirectiveDefault } -// AutocompletePortCommand - Autocomplete podman port command args. -func AutocompletePortCommand(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { +// AutocompleteContainerOneArg - Autocomplete containers as fist arg. +func AutocompleteContainerOneArg(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { if !validCurrentCmdLine(cmd, args, toComplete) { return nil, cobra.ShellCompDirectiveNoFileComp } -- cgit v1.2.3-54-g00ecf