- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for AddChdirFlag (0.19 sec)
-
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) -
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/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) -
src/cmd/go/internal/envcmd/env.go
an empty environment with no prior uses of the -w flag. For more about environment variables, see 'go help environment'. `, } func init() { CmdEnv.Run = runEnv // break init cycle base.AddChdirFlag(&CmdEnv.Flag) base.AddBuildFlagsNX(&CmdEnv.Flag) } var ( envJson = CmdEnv.Flag.Bool("json", false, "") envU = CmdEnv.Flag.Bool("u", false, "") envW = CmdEnv.Flag.Bool("w", false, "")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.6K bytes - Viewed (0)