- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for AddChdirFlag (0.24 sec)
-
src/cmd/go/internal/modcmd/why.go
`, } var ( whyM = cmdWhy.Flag.Bool("m", false, "") whyVendor = cmdWhy.Flag.Bool("vendor", false, "") ) func init() { cmdWhy.Run = runWhy // break init cycle base.AddChdirFlag(&cmdWhy.Flag) base.AddModCommonFlags(&cmdWhy.Flag) } func runWhy(ctx context.Context, cmd *base.Command, args []string) { modload.InitWorkfile() modload.ForceUseModules = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 01 21:32:23 UTC 2023 - 3.8K bytes - Viewed (0) -
src/cmd/go/internal/workcmd/sync.go
that in each workspace module. See the workspaces reference at https://go.dev/ref/mod#workspaces for more information. `, Run: runSync, } func init() { base.AddChdirFlag(&cmdSync.Flag) base.AddModCommonFlags(&cmdSync.Flag) } func runSync(ctx context.Context, cmd *base.Command, args []string) { modload.ForceUseModules = true modload.InitWorkfile()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 03 21:13:11 UTC 2023 - 4.6K bytes - Viewed (0) -
src/cmd/go/internal/tool/tool.go
// show those with the 'go tool' command. func isGccgoTool(tool string) bool { switch tool { case "cgo", "fix", "cover", "godoc", "vet": return true } return false } func init() { base.AddChdirFlag(&CmdTool.Flag) CmdTool.Flag.BoolVar(&toolN, "n", false, "") } func runTool(ctx context.Context, cmd *base.Command, args []string) { if len(args) == 0 { telemetry.Inc("go/subcommand:tool") listTools()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 18:02:11 UTC 2024 - 5.9K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/tidy.go
cmdTidy.Flag.BoolVar(&tidyE, "e", false, "") cmdTidy.Flag.BoolVar(&tidyDiff, "diff", false, "") cmdTidy.Flag.Var(&tidyGo, "go", "") cmdTidy.Flag.Var(&tidyCompat, "compat", "") base.AddChdirFlag(&cmdTidy.Flag) base.AddModCommonFlags(&cmdTidy.Flag) } // A goVersionFlag is a flag.Value representing a supported Go version. // // (Note that the -go argument to 'go mod edit' is *not* a goVersionFlag.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 5K bytes - Viewed (0) -
src/cmd/go/internal/bug/bug.go
Long: ` Bug opens the default browser and starts a new bug report. The report includes useful system information. `, } func init() { CmdBug.Flag.BoolVar(&cfg.BuildV, "v", false, "") base.AddChdirFlag(&CmdBug.Flag) } func runBug(ctx context.Context, cmd *base.Command, args []string) { if len(args) > 0 { base.Fatalf("go: bug takes no arguments") } work.BuildInit() var buf strings.Builder
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 5.7K bytes - Viewed (0) -
src/cmd/go/internal/workcmd/use.go
See the workspaces reference at https://go.dev/ref/mod#workspaces for more information. `, } var useR = cmdUse.Flag.Bool("r", false, "") func init() { cmdUse.Run = runUse // break init cycle base.AddChdirFlag(&cmdUse.Flag) base.AddModCommonFlags(&cmdUse.Flag) } func runUse(ctx context.Context, cmd *base.Command, args []string) { modload.ForceUseModules = true modload.InitWorkfile() gowork := modload.WorkFilePath()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 03 21:13:11 UTC 2023 - 7K bytes - Viewed (0) -
src/cmd/go/internal/workcmd/edit.go
cmdEdit.Flag.Var(flagFunc(flagEditworkDropUse), "dropuse", "") cmdEdit.Flag.Var(flagFunc(flagEditworkReplace), "replace", "") cmdEdit.Flag.Var(flagFunc(flagEditworkDropReplace), "dropreplace", "") base.AddChdirFlag(&cmdEdit.Flag) } func runEditwork(ctx context.Context, cmd *base.Command, args []string) { if *editJSON && *editPrint { base.Fatalf("go: cannot use both -json and -print") } if len(args) > 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 11K bytes - Viewed (0) -
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
func init() { cmdDownload.Run = runDownload // break init cycle // 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"`
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 != "" ||
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 13:52:10 UTC 2024 - 17.2K bytes - Viewed (0)