Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefault ¶
func GetDefault() string
GetDefault returns the default mount prefix from fixtures.
func IsValid ¶
IsValid checks if the provided workdir is valid.
A valid workdir must: - Be an absolute path. - Start with the mount prefix from fixtures.
Parameters:
- workdir: The workdir path to validate.
Returns:
- An error if the workdir is invalid; otherwise, nil.
func SetOrDefault ¶
SetOrDefault returns the provided workdir if it is not empty; otherwise, it returns the default workdir.
Parameters:
- workdir: The workdir path to validate.
Returns:
- The provided workdir if it is not empty and starts with '/'.
- The default workdir if the provided workdir is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.