Skip to content

Commit

Permalink
molecule: simple host completion for now
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Apr 14, 2024
1 parent 1af881e commit 08d35db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion completers/molecule_completer/cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand All @@ -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(),
})

Expand Down

0 comments on commit 08d35db

Please sign in to comment.