Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
expectrl
Expectrl is a tool for automating terminal applications.
Expectrl is a rust module for spawning child applications and controlling them and responding to expected patterns in process's output. Expectrl works like Don Libes' Expect. Expectrl allows your script to spawn a child application and control it as if a human were typing commands.
Using the library you can:
- Spawn process
- Control process
- Interact with process's IO(input/output).
expectrl
like original expect
may shine when you're working with interactive applications.
If your application is not interactive you may not find the library the best choise.
Usage
A general example where the program simulates a used interacting with ftp
.
use ;
The example inspired by the one in philippkeller/rexpect.
For more examples, check the examples directory.
Features
- It has an
async
support (To enable them you must turn on anasync
feature). - It supports logging.
- It supports interact function.
- It works on windows.
Notes
It was originally inspired by philippkeller/rexpect and pexpect.
Licensed under MIT License