Function deno_task_shell::execute

source ·
pub async fn execute(
    list: SequentialList,
    env_vars: HashMap<String, String>,
    cwd: &Path,
    custom_commands: HashMap<String, Rc<dyn ShellCommand>>
) -> i32
Expand description

Executes a SequentialList of commands in a deno_task_shell environment.

This function accepts a list of commands, a map of environment variables, the current working directory, and a map of custom shell commands. It sets up the shell state and then calls execute_with_pipes with the standard input, output, and error streams.

Arguments

  • list - A SequentialList of commands to execute.
  • env_vars - A map of environment variables which are set in the shell.
  • cwd - The current working directory.
  • custom_commands - A map of custom shell commands and there ShellCommand implementation.

Returns

The exit code of the command execution.