pub fn list_scripts(
root: &Path,
) -> Result<Vec<(String, PathBuf)>, ListScriptsError>
Expand description
Lists all available scripts in a directory and its sub-directories
Returns the name of the script and its full path
Transverse the passed-in directory and find all files that:
- Have the [
BASH_EXTENSION
] extension; - Are executable;
§Notes
- Ignores files that fail to be read
§Errors
- Error reading any sub-directory;
- Passed-in path is not a directory;