- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for AddModCommonFlags (0.24 sec)
-
src/cmd/go/internal/modcmd/vendor.go
func init() { cmdVendor.Flag.BoolVar(&cfg.BuildV, "v", false, "") cmdVendor.Flag.BoolVar(&vendorE, "e", false, "") cmdVendor.Flag.StringVar(&vendorO, "o", "", "") base.AddChdirFlag(&cmdVendor.Flag) base.AddModCommonFlags(&cmdVendor.Flag) } func runVendor(ctx context.Context, cmd *base.Command, args []string) { modload.InitWorkfile() if modload.WorkFilePath() != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 14:19:59 UTC 2024 - 14.5K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/download.go
// TODO(jayconrod): https://golang.org/issue/35849 Apply -x to other 'go mod' commands. cmdDownload.Flag.BoolVar(&cfg.BuildX, "x", false, "") base.AddChdirFlag(&cmdDownload.Flag) base.AddModCommonFlags(&cmdDownload.Flag) } // A ModuleJSON describes the result of go mod download. type ModuleJSON struct { Path string `json:",omitempty"` Version string `json:",omitempty"`
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 19:32:39 UTC 2023 - 13.5K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/edit.go
cmdEdit.Flag.Var(flagFunc(flagRetract), "retract", "") cmdEdit.Flag.Var(flagFunc(flagDropRetract), "dropretract", "") base.AddBuildFlagsNX(&cmdEdit.Flag) base.AddChdirFlag(&cmdEdit.Flag) base.AddModCommonFlags(&cmdEdit.Flag) } func runEdit(ctx context.Context, cmd *base.Command, args []string) { anyFlags := *editModule != "" || *editGo != "" || *editToolchain != "" || *editJSON || *editPrint ||
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 17.2K bytes - Viewed (0) -
src/cmd/go/internal/work/build.go
cmd.Flag.Var(&load.BuildGcflags, "gcflags", "") cmd.Flag.Var(&load.BuildGccgoflags, "gccgoflags", "") if mask&OmitModFlag == 0 { base.AddModFlag(&cmd.Flag) } if mask&OmitModCommonFlags == 0 { base.AddModCommonFlags(&cmd.Flag) } else { // Add the overlay flag even when we don't add the rest of the mod common flags. // This only affects 'go get' in GOPATH mode, but add the flag anyway for // consistency.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 17:22:59 UTC 2024 - 33.2K bytes - Viewed (0)