mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 15:32:53 +00:00
go: added work vendor
This commit is contained in:
parent
94cffc9085
commit
004b9413d6
25
completers/go_completer/cmd/work_vendor.go
Normal file
25
completers/go_completer/cmd/work_vendor.go
Normal file
@ -0,0 +1,25 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/carapace-sh/carapace"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var work_vendorCmd = &cobra.Command{
|
||||
Use: "vendor",
|
||||
Short: "make vendored copy of dependencies",
|
||||
Run: func(cmd *cobra.Command, args []string) {},
|
||||
}
|
||||
|
||||
func init() {
|
||||
carapace.Gen(work_vendorCmd).Standalone()
|
||||
|
||||
work_vendorCmd.Flags().BoolS("e", "e", false, "attempt to proceed despite errors")
|
||||
work_vendorCmd.Flags().StringS("o", "o", "", "create the vendor directory at the given path")
|
||||
work_vendorCmd.Flags().BoolS("v", "v", false, "print the names of vendored modules and packages")
|
||||
workCmd.AddCommand(work_vendorCmd)
|
||||
|
||||
carapace.Gen(work_vendorCmd).FlagCompletion(carapace.ActionMap{
|
||||
"o": carapace.ActionDirectories(),
|
||||
})
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user