(env map[string]string)
| 50 | } |
| 51 | |
| 52 | func (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. |