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

Method Get

internal/config/config.go:803–805  ·  view source on GitHub ↗
(alias string)

Source from the content-addressed store, hash-verified

801}
802
803func (a *AliasConfig) Get(alias string) (string, error) {
804 return a.cfg.Get([]string{aliasesKey, alias})
805}
806
807func (a *AliasConfig) Add(alias, expansion string) {
808 a.cfg.Set([]string{aliasesKey, alias}, expansion)

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected