Skip to content

Commit

Permalink
Merge pull request #1660 from rsteube/helm-plugin-repo
Browse files Browse the repository at this point in the history
helm: plugin install - repo completion
  • Loading branch information
rsteube authored Apr 12, 2023
2 parents ce6648f + bc0829a commit cf83fe7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion completers/helm_completer/cmd/plugin_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cmd

import (
"github.com/rsteube/carapace"
"github.com/rsteube/carapace-bin/pkg/actions/tools/git"
"github.com/spf13/cobra"
)

Expand All @@ -17,6 +18,9 @@ func init() {
pluginCmd.AddCommand(plugin_installCmd)

carapace.Gen(plugin_installCmd).PositionalCompletion(
carapace.ActionDirectories(),
carapace.Batch(
git.ActionRepositorySearch(git.SearchOpts{}.Default()),
carapace.ActionDirectories(),
).ToA(),
)
}

0 comments on commit cf83fe7

Please sign in to comment.