MCPcopy Index your code
hub / github.com/getsops/sops / getUserConfigDir

Function getUserConfigDir

age/keysource.go:393–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

391}
392
393func getUserConfigDir() (string, error) {
394 if runtime.GOOS == "darwin" {
395 if userConfigDir, ok := os.LookupEnv(xdgConfigHome); ok && userConfigDir != "" {
396 return userConfigDir, nil
397 }
398 }
399 return os.UserConfigDir()
400}
401
402type identityReader struct {
403 reader io.Reader

Callers 3

loadIdentitiesMethod · 0.85
TestUserConfigDirFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestUserConfigDirFunction · 0.68