Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 553 for flagstr (0.25 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/cmd/vendor/github.com/google/pprof/internal/plugin/plugin.go

    // typically a filename.
    type Writer interface {
    	Open(name string) (io.WriteCloser, error)
    }
    
    // A FlagSet creates and parses command-line flags.
    // It is similar to the standard flag.FlagSet.
    type FlagSet interface {
    	// Bool, Int, Float64, and String define new flags,
    	// like the functions of the same name in package flag.
    	Bool(name string, def bool, usage string) *bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/options/certs.go

    limitations under the License.
    */
    
    package options
    
    import "github.com/spf13/pflag"
    
    // AddCertificateDirFlag adds the --certs-dir flag to the given flagset
    func AddCertificateDirFlag(fs *pflag.FlagSet, certsDir *string) {
    	fs.StringVar(certsDir, CertificatesDir, *certsDir, "The path where to save the certificates")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 12 09:44:35 UTC 2021
    - 856 bytes
    - Viewed (0)
  7. cmd/kubelet/app/options/globalflags_linux.go

    	global := flag.CommandLine
    	local := pflag.NewFlagSet(os.Args[0], pflag.ExitOnError)
    
    	// e2e node tests rely on this
    	register(global, local, "housekeeping_interval")
    
    	// These flags were implicit from cadvisor, and are mistakes that should be registered deprecated:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 07 20:15:13 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  8. cmd/kube-controller-manager/app/options/deploymentcontroller.go

    type DeploymentControllerOptions struct {
    	*deploymentconfig.DeploymentControllerConfiguration
    }
    
    // AddFlags adds flags related to DeploymentController for controller manager to the specified FlagSet.
    func (o *DeploymentControllerOptions) AddFlags(fs *pflag.FlagSet) {
    	if o == nil {
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 30 12:00:53 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  9. cmd/kube-controller-manager/app/options/deprecatedcontroller.go

    // TODO remove these fields once the deprecated flags are removed.
    type DeprecatedControllerOptions struct {
    	*kubectrlmgrconfig.DeprecatedControllerConfiguration
    }
    
    // AddFlags adds flags related to DeprecatedController for controller manager to the specified FlagSet.
    func (o *DeprecatedControllerOptions) AddFlags(fs *pflag.FlagSet) {
    	if o == nil {
    		return
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 22 12:28:12 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  10. istioctl/pkg/cli/option.go

    	defaultNamespace string
    }
    
    func AddRootFlags(flags *pflag.FlagSet) *RootFlags {
    	r := &RootFlags{
    		kubeconfig:     ptr.Of[string](""),
    		configContext:  ptr.Of[string](""),
    		namespace:      ptr.Of[string](""),
    		istioNamespace: ptr.Of[string](""),
    	}
    	flags.StringVarP(r.kubeconfig, FlagKubeConfig, "c", "",
    		"Kubernetes configuration file")
    	flags.StringVar(r.configContext, FlagContext, "",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 18:01:27 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top