Registry / testing / expectrl

expectrl

JSON →
library0.9.0rscratesunverified

A tool for automating terminal applications in Unix, similar to Don Libes' expect.

# Cargo.toml [dependencies] expectrl = "0.9.0"
INSTALL
IMPORT
SIG · EXPECTRL
E
expectrl
testingrustv0.9.0
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.

spawn
✓ use expectrl::spawn;

Spawn a process and expect output.

use expectrl::spawn; fn main() -> Result<(), Box<dyn std::error::Error>> { let mut p = spawn("echo hello")?; p.expect("hello")?; println!("Matched!"); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Resources
expectrl — cargo add expectrl · libregistry