Files
steep/crates/devcontainer-rs/src/exec.rs
T
qpismont 3078ba5705
ci/woodpecker/push/tests Pipeline was canceled
clean project structure
2026-10-13 19:57:24 +00:00

17 lines
366 B
Rust

//! Result of a command run in a container.
/// Result of a command run in a container.
#[derive(Debug, Clone)]
pub struct ExecOutput {
/// Exit code, or `-1` if the process was terminated by a signal.
pub status: i32,
pub stdout: String,
pub stderr: String,
}
impl ExecOutput {
pub fn success(&self) -> bool {
self.status == 0
}
}