(&self)
| 44 | } |
| 45 | |
| 46 | fn run_shell(&self) -> Child { |
| 47 | let mut command = Command::new("cargo"); |
| 48 | command.arg("run"); |
| 49 | if let Some(example) = self.example { |
| 50 | command.args(["--example", example]); |
| 51 | } |
| 52 | command.stdin(Stdio::piped()).stdout(Stdio::piped()); |
| 53 | |
| 54 | command.spawn().unwrap() |
| 55 | } |
| 56 | |
| 57 | fn write_stdin(&self, child: &mut Child) { |
| 58 | if let Some(stdin) = self.stdin { |