MCPcopy Index your code
hub / github.com/jetify-com/devbox / Path

Method Path

internal/devbox/envpath/stack.go:52–56  ·  view source on GitHub ↗
(env map[string]string)

Source from the content-addressed store, hash-verified

50}
51
52func (s *stack) Path(env map[string]string) string {
53 // Look up the paths-list for each stack element, and join them together to get the final PATH.
54 pathLists := lo.Map(s.keys, func(part string, idx int) string { return env[part] })
55 return JoinPathLists(pathLists...)
56}
57
58// Key is the element stored in the stack for a devbox-project. It represents
59// a pointer to the devboxEnvPath value stored in its own env-var, also using this same Key.

Callers 3

computeEnvMethod · 0.45
TestNewStackFunction · 0.45

Calls 1

JoinPathListsFunction · 0.85

Tested by 1

TestNewStackFunction · 0.36