From f7bd0a495ac40c5165e699f2eee31a33c3c0850f Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Sat, 12 Dec 2020 17:42:53 +0100 Subject: shell completion for the network flag Complete all the options e.g. `container:`,`ns:`,`host`, etc... Signed-off-by: Paul Holzinger --- cmd/podman/common/netflags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/podman/common/netflags.go') 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( -- cgit v1.2.3-54-g00ecf