Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 680 for flagstr (0.18 sec)

  1. 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)
  2. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/builder_flags.go

    func (o *ResourceBuilderFlags) StopOnError() *ResourceBuilderFlags {
    	o.StopOnFirstError = true
    	return o
    }
    
    // AddFlags registers flags for finding resources
    func (o *ResourceBuilderFlags) AddFlags(flagset *pflag.FlagSet) {
    	o.FileNameFlags.AddFlags(flagset)
    
    	if o.LabelSelector != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 13 10:28:09 UTC 2021
    - 6.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. tools/bug-report/pkg/processlog/processlog.go

    	return 1000*s.numFatals + 100*s.numErrors + 10*s.numWarnings
    }
    
    // Process processes logStr based on the supplied config and returns the processed log along with statistics on it.
    func Process(config *config.BugReportConfig, logStr string) (string, *Stats) {
    	if !config.TimeFilterApplied {
    		return logStr, getStats(config, logStr)
    	}
    	out := getTimeRange(logStr, config.StartTime, config.EndTime)
    	return out, getStats(config, out)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 19 21:44:33 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. cmd/kube-apiserver/app/options/globalflags_test.go

    )
    
    func TestAddCustomGlobalFlags(t *testing.T) {
    	namedFlagSets := &cliflag.NamedFlagSets{}
    
    	// Note that we will register all flags (including klog flags) into the same
    	// flag set. This allows us to test against all global flags from
    	// flags.CommandLine.
    	nfs := namedFlagSets.FlagSet("test")
    	nfs.SetNormalizeFunc(cliflag.WordSepNormalizeFunc)
    	globalflag.AddGlobalFlags(nfs, "test-cmd")
    	AddCustomGlobalFlags(nfs)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 30 11:46:49 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  8. src/cmp.bash

    # old.txt and new.txt.
    
    FLAGS1="-newexport=0"
    FLAGS2="-newexport=1"
    
    echo
    echo
    echo "1a) clean build using $FLAGS1"
    (export GO_GCFLAGS="$FLAGS1"; sh make.bash)
    
    echo
    echo
    echo "1b) save go build output for all packages"
    for pkg in `go list std`; do
    	echo $pkg
    	DIR=$GOROOT/src/$pkg
    	go build -gcflags "$FLAGS1 -S" -o /dev/null $pkg &> $DIR/old.txt
    done
    
    echo
    echo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:03:31 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. cmd/kube-controller-manager/app/options/daemonsetcontroller.go

    type DaemonSetControllerOptions struct {
    	*daemonconfig.DaemonSetControllerConfiguration
    }
    
    // AddFlags adds flags related to DaemonSetController for controller manager to the specified FlagSet.
    func (o *DaemonSetControllerOptions) AddFlags(fs *pflag.FlagSet) {
    	if o == nil {
    		return
    	}
    }
    
    // ApplyTo fills up DaemonSetController config with options.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 04:54:33 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/cmdflag/flag.go

    // and always consumes at least one argument (even on error).
    //
    // Unlike (*flag.FlagSet).Parse, ParseOne does not log its own errors.
    func ParseOne(fs *flag.FlagSet, args []string) (f *flag.Flag, remainingArgs []string, err error) {
    	// This function is loosely derived from (*flag.FlagSet).parseOne.
    
    	raw, args := args[0], args[1:]
    	arg := raw
    	if strings.HasPrefix(arg, "--") {
    		if arg == "--" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 06 02:38:04 UTC 2022
    - 3.6K bytes
    - Viewed (0)
Back to top