Skip to content

Commit

Permalink
Merge pull request #1468 from rsteube/go-tidy
Browse files Browse the repository at this point in the history
go: tidy - added missing flags
  • Loading branch information
rsteube authored Jan 7, 2023
2 parents 3612c48 + 10ead2d commit 40e3cbb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions completers/go_completer/cmd/mod_tidy.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/golang"
"github.com/spf13/cobra"
)

Expand All @@ -14,6 +15,14 @@ var mod_tidyCmd = &cobra.Command{
func init() {
carapace.Gen(mod_tidyCmd).Standalone()

mod_tidyCmd.Flags().StringS("compat", "compat", "", "preserve additional checksums needed for given version")
mod_tidyCmd.Flags().BoolS("e", "e", false, "attempt to proceed despite errors")
mod_tidyCmd.Flags().StringS("go", "go", "", "update the 'go' directive to given version")
mod_tidyCmd.Flags().BoolS("v", "v", false, "print information about removed modules")
modCmd.AddCommand(mod_tidyCmd)

carapace.Gen(mod_tidyCmd).FlagCompletion(carapace.ActionMap{
"compat": golang.ActionVersions(),
"go": golang.ActionVersions(),
})
}

0 comments on commit 40e3cbb

Please sign in to comment.