deno_task_shell

Crates.iodeno_task_shell
lib.rsdeno_task_shell
version0.18.1
sourcesrc
created_at2022-03-06 00:55:54.592196
updated_at2024-10-03 11:32:22.630432
descriptionCross platform scripting for deno task
homepagehttps://deno.land/
repositoryhttps://github.com/denoland/deno_task_shell
max_upload_size
id544308
size223,954
(denobot)

documentation

https://docs.rs/deno_task_shell

README

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,
  Default::default(), // custom commands
).await;
Commit count: 109

cargo fmt