Function pine::lines
[−]
[src]
pub fn lines(child: &mut Child) -> Lines
creates a new Lines instance
use std::process::{Command, Stdio}; match Command::new("...") .stdout(Stdio::piped()) .stderr(Stdio::piped()).spawn() { Ok(mut child) => { let lines = pine::lines(&mut child); child.wait().unwrap(); for l in lines.iter() { println!("{:?}", l) } }, _ => println!("failed to launch process") }