Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PathStackEnv stores the string representation of the stack, as a ":" separated list. // Each element in the list is also the key to the env-var that stores the // devboxEnvPath for that devbox-project. Except for the last element, which is InitPathEnv. PathStackEnv = "DEVBOX_PATH_STACK" // InitPathEnv stores the path prior to any devbox shellenv modifying the environment InitPathEnv = "DEVBOX_INIT_PATH" )
Variables ¶
This section is empty.
Functions ¶
func JoinPathLists ¶
JoinPathLists joins and cleans PATH-style strings of os.ListSeparator delimited paths. To clean a path list, it splits it and does the following for each element:
- Applies filepath.Clean.
- Removes the path if it's relative (must begin with '/' and not be '.').
- Removes the path if it's a duplicate.
func Key ¶
Key is the element stored in the stack for a devbox-project. It represents a pointer to the devboxEnvPath value stored in its own env-var, also using this same Key.
func RemoveFromPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.