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

Method Get

internal/gh/gh.go:336–336  ·  view source on GitHub ↗

Get retrieves the expansion for a specified alias.

(alias string)

Source from the content-addressed store, hash-verified

334type AliasConfig interface {
335 // Get retrieves the expansion for a specified alias.
336 Get(alias string) (expansion string, err error)
337
338 // Add adds a new alias with the specified expansion.
339 Add(alias, expansion string)

Callers 15

ServeHTTPMethod · 0.65
TestMockServerFunction · 0.65
serveGitHTTPMethod · 0.65
checkMethod · 0.65
jsonMediaFunction · 0.65
fakeGHFunction · 0.65
fakeGetFunction · 0.65
recordingHandlerFunction · 0.65

Implementers 1

AliasConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 15

TestMockServerFunction · 0.52
fakeGHFunction · 0.52
fakeGetFunction · 0.52
TestUploadFunction · 0.52
TestUploadAuthenticationFunction · 0.52