mrvillage-cli 0.1.15

My personal CLI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug)]
pub struct CommandWrapper(pub std::process::Child);

impl CommandWrapper {
    pub fn spawn(mut command: std::process::Command) -> anyhow::Result<Self> {
        Ok(Self(command.spawn()?))
    }
}

impl Drop for CommandWrapper {
    fn drop(&mut self) {
        let _res = self.0.kill();
    }
}