MCPcopy Create free account
hub / github.com/algolia/cli / LoadDefault

Method LoadDefault

pkg/config/profile.go:31–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31func (p *Profile) LoadDefault() {
32 configs := viper.AllSettings()
33 for appName := range configs {
34 if viper.GetBool(appName + ".default") {
35 p.Name = appName
36 }
37 }
38}
39
40func (p *Profile) GetApplicationID() (string, error) {
41 if os.Getenv("ALGOLIA_APPLICATION_ID") != "" {

Callers 8

GetApplicationIDMethod · 0.95
GetAPIKeyMethod · 0.95
GetAdminAPIKeyMethod · 0.95
GetSearchHostsMethod · 0.95
GetCrawlerUserIDMethod · 0.95
GetCrawlerAPIKeyMethod · 0.95
CheckAuthFunction · 0.80
runSetDefaultCmdFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected