Crates.io | deno_task_shell |
lib.rs | deno_task_shell |
version | 0.16.1 |
source | src |
created_at | 2022-03-06 00:55:54.592196 |
updated_at | 2024-05-08 00:14:35.537911 |
description | Cross platform scripting for deno task |
homepage | https://deno.land/ |
repository | https://github.com/denoland/deno_task_shell |
max_upload_size | |
id | 544308 |
size | 222,401 |
// 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;