SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
d90101d verified
Raw
History Blame Contribute Delete
312 Bytes
/// Output from a command execution
#[derive(Debug, Clone)]
pub struct CommandOutput {
pub command: String,
pub stdout: String,
pub stderr: String,
pub exit_code: Option<i32>,
}
impl CommandOutput {
pub fn success(&self) -> bool {
self.exit_code.is_none_or(|code| code >= 0)
}
}