Add stdio configuring to run-make Rustc

This commit is contained in:
clubby789 2024-10-07 11:30:18 +00:00
parent ad7d41ce90
commit b577b26249

View File

@ -70,6 +70,30 @@ pub fn args<V, S>(&mut self, args: V) -> &mut Self
self self
} }
/// Configuration for the child processs standard input (stdin) handle.
///
/// See [`std::process::Command::stdin`].
pub fn stdin<T: Into<Stdio>>(&mut self, cfg: T) -> &mut Self {
self.cmd.stdin(cfg);
self
}
/// Configuration for the child processs standard output (stdout) handle.
///
/// See [`std::process::Command::stdout`].
pub fn stdout<T: Into<Stdio>>(&mut self, cfg: T) -> &mut Self {
self.cmd.stdout(cfg);
self
}
/// Configuration for the child processs standard error (stderr) handle.
///
/// See [`std::process::Command::stderr`].
pub fn stderr<T: Into<Stdio>>(&mut self, cfg: T) -> &mut Self {
self.cmd.stderr(cfg);
self
}
/// Inspect what the underlying [`Command`] is up to the /// Inspect what the underlying [`Command`] is up to the
/// current construction. /// current construction.
pub fn inspect<I>(&mut self, inspector: I) -> &mut Self pub fn inspect<I>(&mut self, inspector: I) -> &mut Self