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

Function GetPathVar

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

Source from the content-addressed store, hash-verified

61}
62
63func GetPathVar(environ []string) string {
64 for _, e := range environ {
65 if strings.HasPrefix(e, "PATH=") {
66 return strings.TrimPrefix(e, "PATH=")
67 }
68 }
69 return ""
70}
71
72func GetHomeVar(environ []string) string {
73 for _, e := range environ {

Callers 3

apiCompleteWordsMainFunction · 0.92
runHelpCommandMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected