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

Method Add

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

Add adds a new alias with the specified expansion.

(alias, expansion string)

Source from the content-addressed store, hash-verified

213
214 // Add adds a new alias with the specified expansion.
215 Add(alias, expansion string)
216
217 // Delete removes an alias.
218 Delete(alias string) error

Callers 12

TestGetOrCreateDeviceIDFunction · 0.65
GetCodespaceMethod · 0.65
GetCodespacesMachinesMethod · 0.65
InstallFunction · 0.65
TestInstallFunction · 0.65
waitForEchoDisabledFunction · 0.65
DeferredUpdateIssueFunction · 0.65

Implementers 1

AliasConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 4

TestGetOrCreateDeviceIDFunction · 0.52
TestInstallFunction · 0.52
waitForEchoDisabledFunction · 0.52