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

Interface AliasConfig

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

AliasConfig defines an interface for managing command aliases.

Source from the content-addressed store, hash-verified

332
333// AliasConfig defines an interface for managing command aliases.
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)
340
341 // Delete removes an alias.
342 Delete(alias string) error
343
344 // All returns a map of all aliases to their corresponding expansions.
345 All() map[string]string
346}

Callers 21

ServeHTTPMethod · 0.65
TestMockServerFunction · 0.65
serveGitHTTPMethod · 0.65
checkMethod · 0.65
jsonMediaFunction · 0.65
fakeGHFunction · 0.65
fakeGetFunction · 0.65
ServeHTTPMethod · 0.65
startHandshakeMethod · 0.65
TestCmdGitFunction · 0.65
cmdGitSSHFunction · 0.65

Implementers 1

AliasConfiginternal/config/config.go

Calls

no outgoing calls

Tested by

no test coverage detected