# Functions
DotSlash ensures a relative path has a leading ./ needed for CUE loading.
EnsureNewline adds a trailing newline if not already there.
FindCueMod returns the root module location containing the cue.mod.
FindRootLeaf returns the root path containing the cue.mod and the leaf path relative to the root for the given target path.
No description provided by the author
Remove cleans up path, useful for temporary directories.
RunCmd runs a command within a context, captures its output, provides debug logging, and returns the result.
RunCmdA calls RunCmd and always copies the result stderr to w.
RunCmdW calls RunCmd and copies the result stderr to w if there is an error.
RunInteractiveCmd runs a command within a context but allows the command to accept stdin interactively from the user.