Result of Command::new() does not reflect the output status
When calling rm
, mattock returns "Session deleted: name" for everything, even if it didn't exist. Mattock should capture the output of the executed command and return that. The documentation of std::process shows how to do this.