Function lazy_badger::run_script
source · pub fn run_script(
path: &Path,
arguments: &[String],
) -> Result<ScriptOutput, RunScriptError>Expand description
Runs a script from its path
Forwards the given arguments to the scripts
§Errors
- Path is not a file;
- Path is not found;
- Script is not executable;
- Error running the script;
- Error parsing script output;