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

Interface AliasConfig

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

AliasConfig defines an interface for managing command aliases.

Source from the content-addressed store, hash-verified

349
350// AliasConfig defines an interface for managing command aliases.
351type AliasConfig interface {
352 // Get retrieves the expansion for a specified alias.
353 Get(alias string) (expansion string, err error)
354
355 // Add adds a new alias with the specified expansion.
356 Add(alias, expansion string)
357
358 // Delete removes an alias.
359 Delete(alias string) error
360
361 // All returns a map of all aliases to their corresponding expansions.
362 All() map[string]string
363}

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