Write `path`s content to `stdin` when the `Command` is run. Paths are relative to the [`env::current_dir`][env_current_dir] and not [`Command::current_dir`][Command_current_dir]. [env_current_dir]: std::env::current_dir() [Command_current_dir]: std::process::Command::current_dir()
(&mut self, file: P)
| 118 | /// [env_current_dir]: std::env::current_dir() |
| 119 | /// [Command_current_dir]: std::process::Command::current_dir() |
| 120 | pub fn pipe_stdin<P>(&mut self, file: P) -> io::Result<&mut Self> |
| 121 | where |
| 122 | P: AsRef<path::Path>, |
| 123 | { |
| 124 | let buffer = std::fs::read(file)?; |
| 125 | Ok(self.write_stdin(buffer)) |
| 126 | } |
| 127 | |
| 128 | /// Run a `Command`, returning an [`OutputResult`]. |
| 129 | /// |
nothing calls this directly
no test coverage detected