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

Method Add

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

Source from the content-addressed store, hash-verified

756}
757
758func (a *AliasConfig) Add(alias, expansion string) {
759 a.cfg.Set([]string{aliasesKey, alias}, expansion)
760}
761
762func (a *AliasConfig) Delete(alias string) error {
763 return a.cfg.Remove([]string{aliasesKey, alias})

Callers

nothing calls this directly

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected