MCPcopy Create free account
hub / github.com/cli/cli / addedPaths

Function addedPaths

script/ghmock/scaffold.go:322–330  ·  view source on GitHub ↗

addedPaths lists where fields were added. Indexes become *, so a field added to every item of a list is listed once.

(paths []string)

Source from the content-addressed store, hash-verified

320// addedPaths lists where fields were added. Indexes become *, so a field added
321// to every item of a list is listed once.
322func addedPaths(paths []string) string {
323 for i, p := range paths {
324 for listIndex.MatchString(p) {
325 p = listIndex.ReplaceAllString(p, ".*$1")
326 }
327 paths[i] = p
328 }
329 return joinLimited(dedupe(paths), maxShownProblems)
330}
331
332// scaffoldREST adds a response for a REST request from GitHub's description.
333// A request that already has a response is left alone: ghmock set checks REST

Callers 1

scaffoldGraphQLFunction · 0.85

Calls 2

joinLimitedFunction · 0.85
dedupeFunction · 0.85

Tested by

no test coverage detected