Expand description

interactive_process is a lightweight wrapper on std::process that provides an interface for running a process and relaying messages to/from it as newline-delimited strings over stdin/stdout.

This behavior is provided through the InteractiveProcess struct, which is constructed with a std::process::Command and a callback which is called with a std::io::Result-wrapped String for each string received from the child process. Upon construction, InteractiveProcess begins executing the passed command and starts the event loop. Whilst the process is running, you can send

Structs

  • Wraps a Child object in an interface for doing newline-dellimited string IO with a child process.