umu_wrapper_lib/command.rs
1use std::{io, process::{Command, Output}};
2
3pub struct UmuCommand {
4 inner: Command,
5}
6#[allow(dead_code)]
7impl UmuCommand {
8 pub fn new(inner: Command) -> Self {
9 Self {
10 inner,
11 }
12 }
13 pub fn output(&mut self) -> io::Result<Output> {
14 self.inner.output()
15 }
16 pub fn spawn(&mut self) -> Result<std::process::Child, io::Error> {
17 self.inner.spawn()
18 }
19}