Skip to content

Commit

Permalink
Merge pull request #2347 from carapace-sh/molecule-host
Browse files Browse the repository at this point in the history
molecule: simple host completion for now
  • Loading branch information
rsteube committed Apr 14, 2024
2 parents 1af881e + 08d35db commit 33c3ad1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion completers/molecule_completer/cmd/login.go
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 33c3ad1

Please sign in to comment.