Sets the string input passed to child process's `stdin`. This overwrites the previous value. Use [`Cmd::stdin_bytes()`] if you need to pass non-utf8 byte sequences. Nothing is written to `stdin` by default.
(&mut self, stdin: impl Into<String>)
| 337 | /// |
| 338 | /// Nothing is written to `stdin` by default. |
| 339 | pub fn stdin(&mut self, stdin: impl Into<String>) -> &mut Self { |
| 340 | self.as_mut().stdin = Some(BinOrUtf8::Utf8(stdin.into())); |
| 341 | self |
| 342 | } |
| 343 | |
| 344 | /// Sets the bytes input passed to child process's `stdin`. |
| 345 | /// This overwrites the previous value. |