molecule: simple host completion for now

This commit is contained in:
rsteube 2024-04-14 18:44:04 +02:00
parent 1af881e9d9
commit 08d35db193

View File

@ -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(),
})