(mut self, arg: S)
| 84 | } |
| 85 | |
| 86 | pub(crate) fn arg<S: AsRef<OsStr>>(mut self, arg: S) -> Self { |
| 87 | self.cmd.args([arg]); |
| 88 | self |
| 89 | } |
| 90 | |
| 91 | /// Run the command, returning an error if the command does not exit successfully. |
| 92 | pub(crate) fn run(self) -> Result<()> { |