mod command_ext;
use thiserror::Error;
pub use command_ext::*;
#[derive(Debug, Error)]
pub enum CommandExecError {
#[error("failed to spawn subprocess: {0}")]
Spawn(#[source] std::io::Error),
#[error("subprocess timed out after {duration_ms} ms")]
Timeout { duration_ms: u64 },
#[allow(dead_code)]
#[error("subprocess got killed after {duration_ms} ms")]
Killed { duration_ms: u64 },
#[error("subprocess got cancelled after {duration_ms} ms")]
Cancelled { duration_ms: u64 },
}