// parse
let list = deno_task_shell::parser::parse(&text)?;
// execute
let env_vars = HashMap::from(&[
("SOME_VAR".to_string(), "value".to_string()),
]);
let cwd = std::env::current_dir()?;
let exit_code = deno_task_shell::execute(
list,
env_vars,
&cwd,
Default::default(), // custom commands
).await;
dsherret / deno_task_shell Goto Github PK
View Code? Open in Web Editor NEWThis project forked from denoland/deno_task_shell
Cross platform scripting proof of concept for deno task
License: MIT License