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

Method Add

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

Add adds a new alias with the specified expansion.

(alias, expansion string)

Source from the content-addressed store, hash-verified

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

Callers 15

ServeHTTPMethod · 0.65
startHandshakeMethod · 0.65
TestCmdGitFunction · 0.65
cmdGitSSHFunction · 0.65
newCertAuthorityFunction · 0.65
generateCertificatesFunction · 0.65
TestGetOrCreateDeviceIDFunction · 0.65
TestAuthResultFromTokenFunction · 0.65
GetCodespaceMethod · 0.65
GetCodespacesMachinesMethod · 0.65

Implementers 1

AliasConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 15

TestCmdGitFunction · 0.52
TestGetOrCreateDeviceIDFunction · 0.52
TestAuthResultFromTokenFunction · 0.52
TestInstallFunction · 0.52
TestRefreshableForUserFunction · 0.52
renewingRefresherFunction · 0.52
TestRefreshTelemetryFunction · 0.52