Sets the bytes input passed to child process's `stdin`. This overwrites the previous value. Nothing is written to `stdin` by default.
(&mut self, stdin: Vec<u8>)
| 346 | /// |
| 347 | /// Nothing is written to `stdin` by default. |
| 348 | pub fn stdin_bytes(&mut self, stdin: Vec<u8>) -> &mut Self { |
| 349 | self.as_mut().stdin = Some(BinOrUtf8::Bin(stdin)); |
| 350 | self |
| 351 | } |
| 352 | |
| 353 | /// Same as `cmd.arg(arg1).arg(arg2)`. This is just a convenient shortcut |
| 354 | /// mostly used to lexically group related arguments (for example named arguments). |