- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for customFlags (0.27 sec)
-
src/cmd/go/chdir_test.go
"cmd/go/internal/base" "os" "strings" "testing" ) func TestChdir(t *testing.T) { // We want -C to apply to every go subcommand. // Test that every command either has a -C flag registered // or has CustomFlags set. In the latter case, the command // must be explicitly tested in TestScript/chdir. script, err := os.ReadFile("testdata/script/chdir.txt") if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 03 12:16:35 UTC 2022 - 1.2K bytes - Viewed (0) -
src/cmd/go/internal/base/base.go
// Long is the long message shown in the 'go help <this-command>' output. Long string // Flag is a set of flags specific to this command. Flag flag.FlagSet // CustomFlags indicates that the command will do its own // flag parsing. CustomFlags bool // Commands lists the available commands and help topics. // The order here is the order in which they are printed by 'go help'.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 5.3K bytes - Viewed (0) -
cmd/kube-scheduler/app/testing/testserver.go
// // files that because Golang testing's call to os.Exit will not give a stop channel go routine // enough time to remove temporary files. func StartTestServer(ctx context.Context, customFlags []string) (result TestServer, err error) { logger := klog.FromContext(ctx) ctx, cancel := context.WithCancel(ctx) var errCh chan error tearDown := func() { cancel()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 24 10:35:59 UTC 2023 - 5.2K bytes - Viewed (0) -
cmd/kube-controller-manager/app/testing/testserver.go
// files that because Golang testing's call to os.Exit will not give a stop channel go routine // enough time to remove temporary files. func StartTestServer(ctx context.Context, customFlags []string) (result TestServer, err error) { logger := klog.FromContext(ctx) ctx, cancel := context.WithCancel(ctx) var errCh chan error tearDown := func() { cancel()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 11:28:02 UTC 2023 - 5.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/cmd/server/testing/testserver.go
// files that because Golang testing's call to os.Exit will not give a stop channel go routine // enough time to remove temporary files. func StartTestServer(t Logger, _ *TestServerInstanceOptions, customFlags []string, storageConfig *storagebackend.Config) (result TestServer, err error) { // TODO: this is a candidate for using what is now test/utils/ktesting, // should that become a staging repo.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 9K bytes - Viewed (1) -
src/cmd/go/internal/vet/vet.go
"cmd/go/internal/load" "cmd/go/internal/modload" "cmd/go/internal/trace" "cmd/go/internal/work" ) // Break init loop. func init() { CmdVet.Run = runVet } var CmdVet = &base.Command{ CustomFlags: true, UsageLine: "go vet [build flags] [-vettool prog] [vet flags] [packages]", Short: "report likely mistakes in packages", Long: ` Vet runs the Go vet command on the packages named by the import paths.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 19:23:42 UTC 2023 - 3.2K bytes - Viewed (0) -
cmd/kube-apiserver/app/testing/testserver.go
// files that because Golang testing's call to os.Exit will not give a stop channel go routine // enough time to remove temporary files. func StartTestServer(t ktesting.TB, instanceOptions *TestServerInstanceOptions, customFlags []string, storageConfig *storagebackend.Config) (result TestServer, err error) { tCtx := ktesting.Init(t) if instanceOptions == nil { instanceOptions = NewDefaultTestServerOptions() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 17.6K bytes - Viewed (0) -
src/cmd/go/internal/doc/doc.go
import ( "cmd/go/internal/base" "cmd/go/internal/cfg" "context" ) var CmdDoc = &base.Command{ Run: runDoc, UsageLine: "go doc [doc flags] [package|[package.]symbol[.methodOrField]]", CustomFlags: true, Short: "show documentation for package or symbol", Long: ` Doc prints the documentation comments associated with the item identified by its arguments (a package, const, func, type, var, method, or struct field)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:52:29 UTC 2022 - 4.9K bytes - Viewed (0) -
src/cmd/go/main.go
cfg.CmdEnv = envcmd.MkEnv() for _, env := range cfg.CmdEnv { if os.Getenv(env.Name) != env.Value { os.Setenv(env.Name, env.Value) } } cmd.Flag.Usage = func() { cmd.Usage() } if cmd.CustomFlags { args = args[1:] } else { base.SetFromGOFLAGS(&cmd.Flag) cmd.Flag.Parse(args[1:]) flagCounterPrefix := "go/" + strings.ReplaceAll(cfg.CmdName, " ", "-") + "/flag"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:09:11 UTC 2024 - 10K bytes - Viewed (0) -
src/cmd/go/internal/test/test.go
) // Break init loop. func init() { CmdTest.Run = runTest } const testUsage = "go test [build/test flags] [packages] [build/test flags & test binary flags]" var CmdTest = &base.Command{ CustomFlags: true, UsageLine: testUsage, Short: "test packages", Long: ` 'Go test' automates testing the packages named by the import paths. It prints a summary of the test results in the format:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 71.9K bytes - Viewed (0)