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

Method Add

internal/config/config.go:807–809  ·  view source on GitHub ↗
(alias, expansion string)

Source from the content-addressed store, hash-verified

805}
806
807func (a *AliasConfig) Add(alias, expansion string) {
808 a.cfg.Set([]string{aliasesKey, alias}, expansion)
809}
810
811func (a *AliasConfig) Delete(alias string) error {
812 return a.cfg.Remove([]string{aliasesKey, alias})

Callers

nothing calls this directly

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected