- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for AddChdirFlag (0.58 sec)
-
src/cmd/go/internal/modcmd/init.go
Gopkg.lock), and the current directory (if in GOPATH). See https://golang.org/ref/mod#go-mod-init for more about 'go mod init'. `, Run: runInit, } func init() { base.AddChdirFlag(&cmdInit.Flag) base.AddModCommonFlags(&cmdInit.Flag) } func runInit(ctx context.Context, cmd *base.Command, args []string) { if len(args) > 1 { base.Fatalf("go: 'go mod init' accepts at most one argument") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 19 15:51:46 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/go/internal/workcmd/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: Mon Jul 24 18:09:22 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/verify.go
modules have been changed and causes 'go mod' to exit with a non-zero status. See https://golang.org/ref/mod#go-mod-verify for more about 'go mod verify'. `, Run: runVerify, } func init() { base.AddChdirFlag(&cmdVerify.Flag) base.AddModCommonFlags(&cmdVerify.Flag) } func runVerify(ctx context.Context, cmd *base.Command, args []string) { modload.InitWorkfile() if len(args) != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 16:56:35 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/go/internal/telemetrycmd/telemetry.go
To disable both collection and uploading, run "go telemetry off". See https://go.dev/doc/telemetry for more information on telemetry. `, Run: runTelemetry, } func init() { base.AddChdirFlag(&CmdTelemetry.Flag) } func runTelemetry(ctx context.Context, cmd *base.Command, args []string) { if len(args) == 0 { fmt.Println(telemetry.Mode()) return } if len(args) != 1 { cmd.Usage()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 20:16:39 UTC 2024 - 2.7K 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)