Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 875 for Iflag (0.04 sec)

  1. cmd/kubeadm/app/cmd/phases/workflow/runner.go

    }
    
    func inheritsFlags(sourceFlags, targetFlags *pflag.FlagSet, cmdFlags []string) {
    	// If the list of flag to be inherited from the parent command is not defined, no flag is added
    	if cmdFlags == nil {
    		return
    	}
    
    	// add all the flags to be inherited to the target flagSet
    	sourceFlags.VisitAll(func(f *pflag.Flag) {
    		for _, c := range cmdFlags {
    			if f.Name == c {
    				targetFlags.AddFlag(f)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 21 05:35:15 UTC 2022
    - 16K bytes
    - Viewed (0)
  2. pkg/flag/flag_test.go

    	}
    	opts := Options{
    		B: "b-def",
    	}
    	test.SetEnvForTest(t, "TEST_ENV", "from-env")
    	fs := pflag.NewFlagSet("test", pflag.ContinueOnError)
    	Bind(fs, "a", "", "desc", &opts.A)
    	Bind(fs, "bool", "", "desc", &opts.Bool)
    	BindEnv(fs, "test-env", "", "desc", &opts.Env)
    	fs.Set("a", "a-set")
    	fs.Set("bool", "true")
    	assert.Equal(t, opts, Options{
    		A:    "a-set",
    		B:    "b-def",
    		Env:  "from-env",
    		Bool: true,
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 01 04:37:36 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. cmd/admin-router.go

    // Set of handler options as bit flags
    type hFlag uint8
    
    const (
    	// this flag disables gzip compression of responses
    	noGZFlag = 1 << iota
    
    	// this flag enables tracing body and headers instead of just headers
    	traceAllFlag
    
    	// pass this flag to skip checking if object layer is available
    	noObjLayerFlag
    )
    
    // Has checks if the given flag is enabled in `h`.
    func (h hFlag) Has(flag hFlag) bool {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 10 21:09:36 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  4. cmd/kube-controller-manager/app/options/validatingadmissionpolicycontroller.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package options
    
    import (
    	"fmt"
    
    	"github.com/spf13/pflag"
    
    	validatingadmissionpolicystatusconfig "k8s.io/kubernetes/pkg/controller/validatingadmissionpolicystatus/config"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 20:41:50 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/phases/init/addons.go

    func NewAddonPhase() workflow.Phase {
    	dnsLocalFlags := pflag.NewFlagSet(options.PrintManifest, pflag.ContinueOnError)
    	dnsLocalFlags.BoolVar(&printManifest, options.PrintManifest, printManifest, "Print the addon manifests to STDOUT instead of installing them")
    
    	proxyLocalFlags := pflag.NewFlagSet(options.PrintManifest, pflag.ContinueOnError)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. cmd/fieldnamedocscheck/field_name_docs_check.go

    limitations under the License.
    */
    
    package main
    
    import (
    	"fmt"
    	"os"
    	"regexp"
    	"strings"
    
    	flag "github.com/spf13/pflag"
    	kruntime "k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/klog/v2"
    )
    
    var (
    	typeSrc = flag.StringP("type-src", "s", "", "From where we are going to read the types")
    	re      = regexp.MustCompile("`(\\b\\w+\\b)`")
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 18:32:08 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. releasenotes/notes/drop-legacy-ingress-flag.yaml

    apiVersion: release-notes/v2
    kind: feature
    area: traffic-management
    releaseNotes:
    - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 27 03:04:37 UTC 2023
    - 149 bytes
    - Viewed (0)
  8. istioctl/cmd/options.go

    		rootCmd.PersistentFlags().VisitAll(func(flag *pflag.Flag) {
    			if _, ok := helpFlags[flag.Name]; ok {
    				// Currently every flag.Shorthand is "", so there is no point in showing shorthands
    				shorthand := "   "
    				if flag.Shorthand != "" {
    					shorthand = "-" + flag.Shorthand + ","
    				}
    				c.Printf("  %s --%s: %s\n", shorthand, flag.Name, flag.Usage)
    			}
    		})
    	})
    
    	return retval
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  9. pkg/log/klog.go

    package log
    
    import (
    	goflag "flag"
    	"fmt"
    	"sync"
    
    	"github.com/spf13/pflag"
    	"k8s.io/klog/v2"
    )
    
    var (
    	KlogScope     = RegisterScope("klog", "")
    	configureKlog = sync.Once{}
    )
    
    // EnableKlogWithCobra enables klog to work with cobra / pflags.
    // k8s libraries like client-go use klog.
    func EnableKlogWithCobra() {
    	gf := klogVerboseFlag()
    	pflag.CommandLine.AddFlag(pflag.PFlagFromGoFlag(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/SmokeContinuousIntegrationTest.groovy

            when:
            def bFlag = file("bFlag")
            file("inputA").createFile()
            buildScript """
                task a {
                    inputs.files file("inputA")
                    outputs.files "build/outputA"
                    doLast {}
                }
                task b {
                    def bFlag = file("bFlag")
                    inputs.files files({
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 18.5K bytes
    - Viewed (0)
Back to top