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

Method Get

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

Source from the content-addressed store, hash-verified

752}
753
754func (a *AliasConfig) Get(alias string) (string, error) {
755 return a.cfg.Get([]string{aliasesKey, alias})
756}
757
758func (a *AliasConfig) Add(alias, expansion string) {
759 a.cfg.Set([]string{aliasesKey, alias}, expansion)

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected