Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,054 for flagstr (0.13 sec)

  1. 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)
  2. 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)
  3. cmd/kube-controller-manager/app/options/options.go

    	s.DeploymentController.AddFlags(fss.FlagSet(names.DeploymentController))
    	s.StatefulSetController.AddFlags(fss.FlagSet(names.StatefulSetController))
    	s.DaemonSetController.AddFlags(fss.FlagSet(names.DaemonSetController))
    	s.DeprecatedFlags.AddFlags(fss.FlagSet("deprecated"))
    	s.EndpointController.AddFlags(fss.FlagSet(names.EndpointsController))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 20:41:50 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  4. 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)
  5. cmd/kubeadm/app/cmd/upgrade/plan.go

    			}
    
    			if err := validation.ValidateMixedArguments(cmd.Flags()); err != nil {
    				return err
    			}
    			return runPlan(cmd.Flags(), flags, args, printer)
    		},
    	}
    
    	outputFlags.AddFlags(cmd)
    
    	// Register the common flags for apply and plan
    	addApplyPlanFlags(cmd.Flags(), flags.applyPlanFlags)
    	return cmd
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 03 03:03:29 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. cmd/kubeadm/app/cmd/upgrade/common.go

    	"k8s.io/kubernetes/cmd/kubeadm/app/util/output"
    )
    
    // enforceRequirements verifies that it's okay to upgrade and then returns the variables needed for the rest of the procedure
    func enforceRequirements(flagSet *pflag.FlagSet, flags *applyPlanFlags, args []string, dryRun bool, upgradeApply bool, printer output.Printer) (clientset.Interface, upgrade.VersionGetter, *kubeadmapi.InitConfiguration, *kubeadmapi.UpgradeConfiguration, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top