summaryrefslogtreecommitdiff
path: root/cmd/podman/common/completion.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-16 18:17:38 -0500
committerGitHub <noreply@github.com>2021-01-16 18:17:38 -0500
commit73b036db566a8f3606f0b376728efe03fcf8685d (patch)
treebbb20f048a1076c6eebd78398dcb2dc94e0b1d79 /cmd/podman/common/completion.go
parent83ed464d29c118b67e70fdf7c8baa57c5f8298e5 (diff)
parent47eeb02c7a778890d102b89f9a352c664df1dda1 (diff)
downloadpodman-73b036db566a8f3606f0b376728efe03fcf8685d.tar.gz
podman-73b036db566a8f3606f0b376728efe03fcf8685d.tar.bz2
podman-73b036db566a8f3606f0b376728efe03fcf8685d.zip
Merge pull request #8988 from Luap99/rename-port-completion-func
[CI:DOCS] Rename AutocompletePortCommand func
Diffstat (limited to 'cmd/podman/common/completion.go')
-rw-r--r--cmd/podman/common/completion.go4
1 files changed, 2 insertions, 2 deletions
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
}