Skip to content

Commit

Permalink
go: get - module search
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Mar 22, 2024
1 parent c147567 commit 3265de2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions completers/go_completer/cmd/get.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/tools/golang"
"github.com/spf13/cobra"
)

Expand All @@ -21,4 +22,8 @@ func init() {
getCmd.Flags().BoolS("u", "u", false, "update modules providing dependencies")
addBuildFlags(getCmd)
rootCmd.AddCommand(getCmd)

carapace.Gen(getCmd).PositionalCompletion(
golang.ActionModuleSearch(),
)
}

0 comments on commit 3265de2

Please sign in to comment.