- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for rawArgs (0.13 sec)
-
src/cmd/go/internal/script/engine.go
if usage.RegexpArgs != nil { // First join rawArgs without expansion to pass to RegexpArgs. rawArgs := make([]string, 0, len(cmd.rawArgs)) for _, frags := range cmd.rawArgs { var b strings.Builder for _, frag := range frags { b.WriteString(frag.s) } rawArgs = append(rawArgs, b.String()) } regexpArgs = usage.RegexpArgs(rawArgs...) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 27 01:16:19 UTC 2023 - 22.2K bytes - Viewed (0) -
src/cmd/go/internal/script/cmds.go
} func (c *funcCmd) Usage() *CmdUsage { return &c.usage } // firstNonFlag returns a slice containing the index of the first argument in // rawArgs that is not a flag, or nil if all arguments are flags. func firstNonFlag(rawArgs ...string) []int { for i, arg := range rawArgs { if !strings.HasPrefix(arg, "-") { return []int{i} } if arg == "--" { return []int{i + 1} } } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 28.5K bytes - Viewed (0) -
src/cmd/go/internal/test/testflag.go
} if nd.RawArg == "-args" || nd.RawArg == "--args" { // -args or --args signals that everything that follows // should be passed to the test. explicitArgs = append(explicitArgs, remainingArgs...) break } if firstUnknownFlag == "" { firstUnknownFlag = nd.RawArg } explicitArgs = append(explicitArgs, nd.RawArg) args = remainingArgs
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 19:25:24 UTC 2024 - 12.2K bytes - Viewed (0) -
istioctl/pkg/tag/tag.go
Namespaces: tagNamespaces, } key := uniqTag{ revision: tagRevision, tag: tagName, } rawTags[key] = tagDesc } for k := range rawTags { if k.tag != "" { delete(rawTags, uniqTag{revision: k.revision}) } } tags := slices.SortFunc(maps.Values(rawTags), func(a, b tagDescription) int { if r := cmp.Compare(a.Revision, b.Revision); r != 0 { return r }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 02 08:32:06 UTC 2024 - 16.3K bytes - Viewed (0)