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

Method All

internal/config/config.go:766–777  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

764}
765
766func (a *AliasConfig) All() map[string]string {
767 out := map[string]string{}
768 keys, err := a.cfg.Keys([]string{aliasesKey})
769 if err != nil {
770 return out
771 }
772 for _, key := range keys {
773 val, _ := a.cfg.Get([]string{aliasesKey, key})
774 out[key] = val
775 }
776 return out
777}
778
779func fallbackConfig() *ghConfig.Config {
780 return ghConfig.ReadFromString(defaultConfigStr)

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected