#deno #shell #task #scripting #parse

deno_task_shell

Cross platform scripting for deno task

26 releases (7 breaking)

Uses new Rust 2021

new 0.8.2 Dec 3, 2022
0.7.3 Nov 24, 2022
0.5.0 Jul 19, 2022
0.2.1 Mar 26, 2022

#498 in Development tools

Download history 1248/week @ 2022-08-14 1607/week @ 2022-08-21 1552/week @ 2022-08-28 1793/week @ 2022-09-04 1490/week @ 2022-09-11 1420/week @ 2022-09-18 1551/week @ 2022-09-25 1484/week @ 2022-10-02 1344/week @ 2022-10-09 1323/week @ 2022-10-16 1311/week @ 2022-10-23 1192/week @ 2022-10-30 1196/week @ 2022-11-06 1171/week @ 2022-11-13 1389/week @ 2022-11-20 1029/week @ 2022-11-27

4,872 downloads per month
Used in 6 crates (4 directly)

MIT license

160KB
5K SLoC

deno_task_shell

// 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,
).await;

Dependencies

~0.4–6MB
~89K SLoC