- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 554 for flagstr (0.15 sec)
-
src/cmd/go/internal/base/flag.go
flags.Func("C", "AddChdirFlag", ChdirFlag) } // AddModFlag adds the -mod build flag to the flag set. func AddModFlag(flags *flag.FlagSet) { flags.Var(explicitStringFlag{value: &cfg.BuildMod, explicit: &cfg.BuildModExplicit}, "mod", "") } // AddModCommonFlags adds the module-related flags common to build commands // and 'go mod' subcommands. func AddModCommonFlags(flags *flag.FlagSet) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 19:23:42 UTC 2023 - 2.2K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/options/token.go
return bto } // BootstrapTokenOptions is a wrapper struct for adding bootstrap token-related flags to a FlagSet // and applying the parsed flags to a InitConfiguration object later at runtime // TODO: In the future, we might want to group the flags in a better way than adding them all individually like this type BootstrapTokenOptions struct { *bootstraptokenv1.BootstrapToken
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 21 10:34:21 UTC 2023 - 4.1K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/options/generic.go
func AddKubernetesVersionFlag(fs *pflag.FlagSet, kubernetesVersion *string) { fs.StringVar( kubernetesVersion, KubernetesVersion, *kubernetesVersion, `Choose a specific Kubernetes version for the control plane.`, ) } // AddKubeadmOtherFlags adds flags that are not bound to a configuration file to the given flagset func AddKubeadmOtherFlags(flagSet *pflag.FlagSet, rootfsPath *string) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 10:21:20 UTC 2024 - 5.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/unveil_openbsd.go
// unveil calls is handled by UnveilBlock. func Unveil(path string, flags string) error { if err := supportsUnveil(); err != nil { return err } pathPtr, err := BytePtrFromString(path) if err != nil { return err } flagsPtr, err := BytePtrFromString(flags) if err != nil { return err } return unveil(pathPtr, flagsPtr) } // UnveilBlock blocks future unveil calls.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 29 21:28:33 UTC 2023 - 1.2K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/transport/transport.go
// specified cert, key, and ca. The flags tls_cert, tls_key, and tls_ca are // added to the flagset to allow a user to specify the cert, key, and ca. If // the flagset is nil, no flags will be added, and users will not be able to // use these flags. func New(flagset plugin.FlagSet) http.RoundTripper { if flagset == nil { return &transport{} } flagset.AddExtraUsage(extraUsage) return &transport{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 22 18:58:12 UTC 2022 - 3.8K bytes - Viewed (0) -
pkg/cmd/cmd.go
<-sigs cancel() _ = log.Sync() } // AddFlags adds all command line flags to the given command. func AddFlags(rootCmd *cobra.Command) { rootCmd.PersistentFlags().AddGoFlagSet(flag.CommandLine) } // PrintFlags logs the flags in the flagset func PrintFlags(flags *pflag.FlagSet) { flags.VisitAll(func(flag *pflag.Flag) { log.Infof("FLAG: --%s=%q", flag.Name, flag.Value) })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 1.5K bytes - Viewed (0) -
cmd/kubelet/app/options/options_test.go
t.Errorf("%s: unexpected args: %v", testCase.name, args) continue } t.Logf("%s: args: %v", testCase.name, args) flagSet := pflag.NewFlagSet("output", pflag.ContinueOnError) outputFlags := testCase.outputFlags() outputFlags.AddFlags(flagSet) if err := flagSet.Parse(args); err != nil { if !testCase.err { t.Errorf("%s: unexpected flag error: %v", testCase.name, err) } continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 5.3K bytes - Viewed (0) -
hack/verify-flags/excluded-flags.txt
Vadim Rutkovsky <******@****.***> 1671109648 +0100
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 11 09:42:14 UTC 2023 - 379 bytes - Viewed (0) -
pkg/flag/flag.go
"strings" "time" "github.com/spf13/pflag" ) // Flaggable defines the set of types that can be flags. // This is not exhaustive; add more as needed type Flaggable interface { string | bool | uint16 | time.Duration } var replacer = strings.NewReplacer("-", "_") // Bind registers a flag to the FlagSet. When parsed, the value will be set via pointer. // Usage: // // cfg := Config{Foo: "default-foo"}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 01 04:37:36 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/bytecode/KotlinMetadata.kt
internal fun newTypeParameterOf( flags: Flags = 0, name: String, id: Int = 0, variance: KmVariance, upperBound: KmType, ): KmTypeParameter { val kmTypeParameter = KmTypeParameter(flags, name, id, variance) kmTypeParameter.upperBounds += upperBound return kmTypeParameter } internal fun nullable(kmType: KmType): KmType = kmType.also { it.flags = flagsOf(Flag.Type.IS_NULLABLE) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 13:09:46 UTC 2024 - 9.2K bytes - Viewed (0)