- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for hasFlag (0.22 sec)
-
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) -
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) -
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) -
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) -
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) -
src/go/build/constraint/expr_test.go
} tags := make(map[string]bool) wantTags := make(map[string]bool) for _, tag := range strings.Fields(tt.tags) { wantTags[tag] = true } hasTag := func(tag string) bool { tags[tag] = true return tag == "yes" } ok := x.Eval(hasTag) if ok != tt.ok || !reflect.DeepEqual(tags, wantTags) { t.Errorf("Eval(%#q):\nhave ok=%v, tags=%v\nwant ok=%v, tags=%v", tt.in, ok, tags, tt.ok, wantTags)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 18 22:36:55 UTC 2021 - 7.6K bytes - Viewed (0) -
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) -
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) -
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) -
fess-crawler/src/test/resources/extractor/eml/sample2.eml
mp;sig=8eeab7ed4cbcf7c653beac189463d69a5a6b6236&iid=7c2e8db7f2e0464eb1fb51f268eeba54&uid=131239501&nid=244+300" style="text-decoration:none;border-style:none;border:0;padding:0;margin:0;color:#2b7bb9;">withne.ws/1fHYMW1</a> <a class="hashtag" href="https://twitter.com/i/redirect?url=https%3A%2F%2Ftwitter.com%2Fsearch%3Ft%3D1%26cn%3DZmxleGlibGVfcmVjc18y%26sig%3D444668d081f9931be1ad7f32ff3403ce9492e9ce%26al%3D1%26refsrc%3Demail%26iid%3D7c2e8db7f2e0464eb1fb51f268eeba54%26q%3D%2523withne...
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Sat Jan 16 07:50:35 UTC 2016 - 91.6K bytes - Viewed (0)