Skip to main content

Module execa

Module execa 

Source
Expand description

Execa-style exact-argument process execution with a separate options store.

Unlike the native shell API, these commands execute a file directly and reject failures by default. Output stays as bytes; text() and line helpers provide decoded views. JavaScript-specific IPC and transforms belong to the JavaScript command-stream/execa entry point.

let result = command_stream::execa("git", ["status", "--short"]).await?;
println!("{}", result.text());

Structs§

CancelSignal
Cancellation state supplied to a command.
Cancellation
A clonable cancellation controller. Dropping it does not cancel the child.
Execa
A reusable command factory with private default options.
ExecaCommand
An exact-argv command. Await it directly or call spawn() to stream output.
ExecaError
A failed command retains the same metadata as a successful result.
ExecaResult
Execa-like result metadata, with byte-preserving output.
Options
Portable counterparts of Execa process options.
Subprocess
Live output and process control. Dropping the handle requests termination.

Functions§

execa
execa_compat
execa_node
execa_sync

Type Aliases§

ExecaOutcome