MCPcopy Index your code
hub / github.com/cli/cli / ReplaceSlice

Method ReplaceSlice

pkg/cmd/pr/shared/params.go:365–371  ·  view source on GitHub ↗

ReplaceSlice replaces usages of `@copilot` in a slice with Copilot's login.

(handles []string)

Source from the content-addressed store, hash-verified

363
364// ReplaceSlice replaces usages of `@copilot` in a slice with Copilot's login.
365func (r *CopilotReplacer) ReplaceSlice(handles []string) []string {
366 res := make([]string, len(handles))
367 for i, h := range handles {
368 res[i] = r.replace(h)
369 }
370 return res
371}

Callers 1

Calls 1

replaceMethod · 0.95

Tested by 1