MCPcopy
hub / github.com/cli/cli / Replace

Method Replace

pkg/cmd/pr/shared/params.go:310–315  ·  view source on GitHub ↗
(handle string)

Source from the content-addressed store, hash-verified

308}
309
310func (r *MeReplacer) Replace(handle string) (string, error) {
311 if handle == "@me" {
312 return r.currentLogin()
313 }
314 return handle, nil
315}
316
317func (r *MeReplacer) ReplaceSlice(handles []string) ([]string, error) {
318 res := make([]string, len(handles))

Callers 15

issueListFunction · 0.95
ReplaceSliceMethod · 0.95
ParseURLFunction · 0.80
escapeGlobFunction · 0.80
Test_listRunFunction · 0.80
keypairForPrivateKeyFunction · 0.80
CopyMethod · 0.80
JupyterMethod · 0.80
TestSelectSSHKeysFunction · 0.80
NewMockHttpClientFunction · 0.80
genManTreeFromOptsFunction · 0.80
fillHeaderFunction · 0.80

Calls 1

currentLoginMethod · 0.95

Tested by 5

Test_listRunFunction · 0.64
TestSelectSSHKeysFunction · 0.64
translateFunction · 0.64
TestGenManDocFunction · 0.64