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/play/kube.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/podman/play') diff --git a/cmd/podman/play/kube.go b/cmd/podman/play/kube.go index 5e227d05a..db7280b1d 100644 --- a/cmd/podman/play/kube.go +++ b/cmd/podman/play/kube.go @@ -61,7 +61,7 @@ func init() { networkFlagName := "network" flags.StringVar(&kubeOptions.Network, networkFlagName, "", "Connect pod to CNI network(s)") - _ = kubeCmd.RegisterFlagCompletionFunc(networkFlagName, common.AutocompleteNetworks) + _ = kubeCmd.RegisterFlagCompletionFunc(networkFlagName, common.AutocompleteNetworkFlag) logDriverFlagName := "log-driver" flags.StringVar(&kubeOptions.LogDriver, logDriverFlagName, "", "Logging driver for the container") -- cgit v1.2.3-54-g00ecf