pub mod containment;
pub mod elevation;
pub mod error;
pub mod identity;
pub mod quote;
pub mod stdio;
pub use containment::{ContainMode, Containment};
pub use elevation::{Auth, Backend, ElevatedStdio, ElevatedVia, ElevationReport, EnvSanitizer, Privilege, Secret};
pub use stdio::{Fd, Stdio};
mod child;
pub use child::Child;
mod command;
pub use command::Command;
mod wait;
#[cfg(test)]
mod log_capture;
pub mod process;
pub use process::{Process, Recursive};
#[cfg(feature = "tokio")]
pub mod tokio;
pub use std::process::ExitStatus;
#[derive(Debug)]
pub struct Output {
pub status: ExitStatus,
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
}
pub fn run<I, S>(args: I) -> Command
where
I: IntoIterator<Item = S>,
S: Into<std::ffi::OsString>,
{
let mut c = Command::new();
c.args(args);
c
}
pub fn run_line(line: impl Into<std::ffi::OsString>) -> Command {
let mut c = Command::new();
c.commandline(line);
c
}