- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for AddChdirFlag (0.21 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) -
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)