Registry / utility / execute

execute

JSON →
library0.2.15rscratesunverified

Extends the standard `Command` type for easier program execution.

# Cargo.toml [dependencies] execute = "0.2.15"
INSTALL
IMPORT
SIG · EXECUTE
E
execute
utilityrustv0.2.15
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Execute
use execute::Execute;

Execute a command and capture its output using the Execute trait.

use execute::Execute; use std::process::Command; fn main() { let cmd = Command::new("echo").arg("Hello, world!"); match cmd.execute() { Ok(output) => println!("Output: {}", String::from_utf8_lossy(&output.stdout)), Err(e) => eprintln!("Error: {}", e), } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.15latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
execute — cargo add execute · libregistry