Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for hasFlag (0.12 sec)

  1. src/cmd/go/internal/base/base.go

    			return sub
    		}
    	}
    	return nil
    }
    
    // hasFlag reports whether a command or any of its subcommands contain the given
    // flag.
    func hasFlag(c *Command, name string) bool {
    	if f := c.Flag.Lookup(name); f != nil {
    		return true
    	}
    	for _, sub := range c.Commands {
    		if hasFlag(sub, name) {
    			return true
    		}
    	}
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. src/cmd/go/internal/base/goflags.go

    			}
    			Fatalf("go: parsing $GOFLAGS: non-flag %q", f)
    		}
    
    		name := f[1:]
    		if name[0] == '-' {
    			name = name[1:]
    		}
    		if i := strings.Index(name, "="); i >= 0 {
    			name = name[:i]
    		}
    		if !hasFlag(Go, name) {
    			if hideErrors {
    				continue
    			}
    			Fatalf("go: parsing $GOFLAGS: unknown flag -%s", name)
    		}
    	}
    }
    
    // boolFlag is the optional interface for flag.Value known to the flag package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. cmd/genyaml/gen_kubectl_yaml.go

    	doc.Synopsis = forceMultiLine(command.Short)
    	doc.Description = forceMultiLine(command.Long)
    
    	flags := command.NonInheritedFlags()
    	if flags.HasFlags() {
    		doc.Options = genFlagResult(flags)
    	}
    	flags = command.InheritedFlags()
    	if flags.HasFlags() {
    		doc.InheritedOptions = genFlagResult(flags)
    	}
    
    	if len(command.Example) > 0 {
    		doc.Example = command.Example
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 05 14:05:23 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. cmd/genman/gen_kube_man.go

    		}
    	})
    }
    
    func printOptions(out *bytes.Buffer, command *cobra.Command) {
    	flags := command.NonInheritedFlags()
    	if flags.HasFlags() {
    		fmt.Fprintf(out, "# OPTIONS\n")
    		printFlags(out, flags)
    		fmt.Fprintf(out, "\n")
    	}
    	flags = command.InheritedFlags()
    	if flags.HasFlags() {
    		fmt.Fprintf(out, "# OPTIONS INHERITED FROM PARENT COMMANDS\n")
    		printFlags(out, flags)
    		fmt.Fprintf(out, "\n")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 05 12:03:09 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  5. src/crypto/tls/prf.go

    func (h finishedHash) hashForClientCertificate(sigType uint8, hashAlg crypto.Hash) []byte {
    	if (h.version >= VersionTLS12 || sigType == signatureEd25519) && h.buffer == nil {
    		panic("tls: handshake hash for a client certificate requested after discarding the handshake buffer")
    	}
    
    	if sigType == signatureEd25519 {
    		return h.buffer
    	}
    
    	if h.version >= VersionTLS12 {
    		hash := hashAlg.New()
    		hash.Write(h.buffer)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 16:29:49 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  6. src/internal/reflectlite/type.go

    func (n name) tag() string {
    	if !n.hasTag() {
    		return ""
    	}
    	i, l := n.readVarint(1)
    	i2, l2 := n.readVarint(1 + i + l)
    	return unsafe.String(n.data(1+i+l+i2, "non-empty string"), l2)
    }
    
    func pkgPath(n abi.Name) string {
    	if n.Bytes == nil || *n.DataChecked(0, "name flag field")&(1<<2) == 0 {
    		return ""
    	}
    	i, l := n.ReadVarint(1)
    	off := 1 + i + l
    	if n.HasTag() {
    		i2, l2 := n.ReadVarint(off)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  7. pkg/collateral/control.go

    		}
    	}
    
    	flags := cmd.NonInheritedFlags()
    	flags.SetOutput(g.buffer)
    
    	parentFlags := cmd.InheritedFlags()
    	parentFlags.SetOutput(g.buffer)
    
    	if flags.HasFlags() || parentFlags.HasFlags() {
    		f := make(map[string]*pflag.Flag)
    		addFlags(f, flags)
    		addFlags(f, parentFlags)
    
    		if len(f) > 0 {
    			names := make([]string, len(f))
    			i := 0
    			for n := range f {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 03:51:36 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  8. src/internal/abi/type.go

    }
    
    // IsExported returns "is n exported?"
    func (n Name) IsExported() bool {
    	return (*n.Bytes)&(1<<0) != 0
    }
    
    // HasTag returns true iff there is tag data following this name
    func (n Name) HasTag() bool {
    	return (*n.Bytes)&(1<<1) != 0
    }
    
    // IsEmbedded returns true iff n is embedded (an anonymous field).
    func (n Name) IsEmbedded() bool {
    	return (*n.Bytes)&(1<<3) != 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  9. src/reflect/type.go

    	abi.StructType
    }
    
    func pkgPath(n abi.Name) string {
    	if n.Bytes == nil || *n.DataChecked(0, "name flag field")&(1<<2) == 0 {
    		return ""
    	}
    	i, l := n.ReadVarint(1)
    	off := 1 + i + l
    	if n.HasTag() {
    		i2, l2 := n.ReadVarint(off)
    		off += i2 + l2
    	}
    	var nameOff int32
    	// Note that this field may not be aligned in memory,
    	// so we cannot use a direct int32 assignment here.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/resources/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/verification/report/uikit-icons.min.js

    .org/2000/svg"><circle cx="13" cy="7" r="1"/><circle cx="7" cy="7" r="1"/><circle fill="none" stroke="#000" cx="10" cy="10" r="8.5"/><path fill="none" stroke="#000" d="M14.6,11.4 C13.9,13.3 12.1,14.5 10,14.5 C7.9,14.5 6.1,13.3 5.4,11.4"/></svg>',hashtag:'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.431,8 L15.661,7 L12.911,7 L13.831,3 L12.901,3 L11.98,7 L9.29,7 L10.21,3 L9.281,3 L8.361,7 L5.23,7 L5,8 L8.13,8 L7.21,12 L4.23,12 L4,13 L6.98,13 L6.061,17...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 62.5K bytes
    - Viewed (0)
Back to top