summaryrefslogtreecommitdiff
path: root/cmd/podman/common/netflags.go
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2020-12-12 17:42:53 +0100
committerPaul Holzinger <paul.holzinger@web.de>2020-12-12 19:10:25 +0100
commitf7bd0a495ac40c5165e699f2eee31a33c3c0850f (patch)
tree156d11b186222d10d8d345c601b9c25d4b81cca3 /cmd/podman/common/netflags.go
parentdd954781e6e308a0bbecfaf6699b41426100a58d (diff)
downloadpodman-f7bd0a495ac40c5165e699f2eee31a33c3c0850f.tar.gz
podman-f7bd0a495ac40c5165e699f2eee31a33c3c0850f.tar.bz2
podman-f7bd0a495ac40c5165e699f2eee31a33c3c0850f.zip
shell completion for the network flag
Complete all the options e.g. `container:`,`ns:`,`host`, etc... Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'cmd/podman/common/netflags.go')
-rw-r--r--cmd/podman/common/netflags.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common/netflags.go b/cmd/podman/common/netflags.go
index cae52ccaa..9cb4ed550 100644
--- a/cmd/podman/common/netflags.go
+++ b/cmd/podman/common/netflags.go
@@ -63,7 +63,7 @@ func DefineNetFlags(cmd *cobra.Command) {
networkFlagName, containerConfig.NetNS(),
"Connect a container to a network",
)
- _ = cmd.RegisterFlagCompletionFunc(networkFlagName, AutocompleteNetworks)
+ _ = cmd.RegisterFlagCompletionFunc(networkFlagName, AutocompleteNetworkFlag)
networkAliasFlagName := "network-alias"
netFlags.StringSlice(