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

Method Add

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

Add adds a new alias with the specified expansion.

(alias, expansion string)

Source from the content-addressed store, hash-verified

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

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 12

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