From 08d35db193366d2831b312cc70f6b092305421f2 Mon Sep 17 00:00:00 2001 From: rsteube Date: Sun, 14 Apr 2024 18:44:04 +0200 Subject: [PATCH] molecule: simple host completion for now --- completers/molecule_completer/cmd/login.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/completers/molecule_completer/cmd/login.go b/completers/molecule_completer/cmd/login.go index 386e983b39..b35ec15edd 100644 --- a/completers/molecule_completer/cmd/login.go +++ b/completers/molecule_completer/cmd/login.go @@ -2,6 +2,7 @@ package cmd import ( "github.com/carapace-sh/carapace" + "github.com/carapace-sh/carapace-bin/pkg/actions/net" "github.com/carapace-sh/carapace-bin/pkg/actions/tools/molecule" "github.com/spf13/cobra" ) @@ -20,7 +21,7 @@ func init() { loginCmd.Flags().StringP("scenario-name", "s", "default", "Name of the scenario to target") carapace.Gen(loginCmd).FlagCompletion(carapace.ActionMap{ - // "host": action.ActionInstances(loginCmd), // TODO + "host": net.ActionHosts(), "scenario-name": molecule.ActionScenarios(), })