ah-yu / deno_task_shell

Cross platform shell for deno task.

Home Page:https://crates.io/crates/deno_task_shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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;

About

Cross platform shell for deno task.

https://crates.io/crates/deno_task_shell

License:MIT License


Languages

Language:Rust 100.0%