MCPcopy Create free account
hub / github.com/archlinux-de/pkgstats-cli / Load

Function Load

internal/config/config.go:36–48  ·  view source on GitHub ↗
(configFile string)

Source from the content-addressed store, hash-verified

34}
35
36func Load(configFile string) (*Config, error) {
37 v := viper.New()
38
39 if configFile != "" {
40 v.SetConfigFile(configFile)
41 } else {
42 v.AddConfigPath("/etc")
43 v.SetConfigName("pkgstats")
44 v.SetConfigType("yaml")
45 }
46
47 return parse(v)
48}

Callers 2

TestLoadFunction · 0.92
newSubmitCmdFunction · 0.92

Calls 1

parseFunction · 0.85

Tested by 1

TestLoadFunction · 0.74