MCPcopy Create free account
hub / github.com/dim-an/cod / GetHomeVar

Function GetHomeVar

util/find_path.go:72–79  ·  view source on GitHub ↗
(environ []string)

Source from the content-addressed store, hash-verified

70}
71
72func GetHomeVar(environ []string) string {
73 for _, e := range environ {
74 if strings.HasPrefix(e, "HOME=") {
75 return strings.TrimPrefix(e, "HOME=")
76 }
77 }
78 return ""
79}

Callers 3

apiCompleteWordsMainFunction · 0.92
runHelpCommandMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected