MCPcopy Index your code
hub / github.com/LunaSource/Luna / getGlobalConfigPath

Function getGlobalConfigPath

config/loader.go:11–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func getGlobalConfigPath() (string, error) {
12 home, err := os.UserHomeDir()
13 if err != nil {
14 return "", err
15 }
16 return filepath.Join(home, GLOBAL_CONFIG_FILE), nil
17}
18
19func LoadGlobalConfig() Config {
20 cfg := GetDefaultConfig()

Callers 3

LoadGlobalConfigFunction · 0.85
SaveGlobalConfigFunction · 0.85
createGlobalConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected