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

Method All

internal/config/config.go:815–826  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

813}
814
815func (a *AliasConfig) All() map[string]string {
816 out := map[string]string{}
817 keys, err := a.cfg.Keys([]string{aliasesKey})
818 if err != nil {
819 return out
820 }
821 for _, key := range keys {
822 val, _ := a.cfg.Get([]string{aliasesKey, key})
823 out[key] = val
824 }
825 return out
826}
827
828func fallbackConfig() *ghConfig.Config {
829 return ghConfig.ReadFromString(defaultConfigStr)

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected