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

Interface AliasConfig

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

AliasConfig defines an interface for managing command aliases.

Source from the content-addressed store, hash-verified

218
219// AliasConfig defines an interface for managing command aliases.
220type AliasConfig interface {
221 // Get retrieves the expansion for a specified alias.
222 Get(alias string) (expansion string, err error)
223
224 // Add adds a new alias with the specified expansion.
225 Add(alias, expansion string)
226
227 // Delete removes an alias.
228 Delete(alias string) error
229
230 // All returns a map of all aliases to their corresponding expansions.
231 All() map[string]string
232}

Callers 21

recordingHandlerFunction · 0.65
TestUploadFunction · 0.65
TestUploadAuthenticationFunction · 0.65
newUploadErrorFunction · 0.65
GetFunction · 0.65
generateCertificatesFunction · 0.65
TestGetOrCreateDeviceIDFunction · 0.65
GetCodespaceMethod · 0.65

Implementers 1

AliasConfiginternal/config/config.go

Calls

no outgoing calls

Tested by

no test coverage detected