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

Interface AliasConfig

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

AliasConfig defines an interface for managing command aliases.

Source from the content-addressed store, hash-verified

172
173// AliasConfig defines an interface for managing command aliases.
174type AliasConfig interface {
175 // Get retrieves the expansion for a specified alias.
176 Get(alias string) (expansion string, err error)
177
178 // Add adds a new alias with the specified expansion.
179 Add(alias, expansion string)
180
181 // Delete removes an alias.
182 Delete(alias string) error
183
184 // All returns a map of all aliases to their corresponding expansions.
185 All() map[string]string
186}

Callers 21

GetFunction · 0.65
makeConnectionFunction · 0.65
ListCodespacesMethod · 0.65
GetOrgMemberCodespaceMethod · 0.65
ListDevContainersMethod · 0.65
TestGetOrCreateDeviceIDFunction · 0.65
GetCodespaceMethod · 0.65
GetCodespacesMachinesMethod · 0.65

Implementers 1

AliasConfiginternal/config/config.go

Calls

no outgoing calls

Tested by

no test coverage detected