1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
pub mod capture; pub mod monitor; pub mod session; use std::process::{Command, Stdio}; /// tmux command with pre-set args. pub fn tmux_cmd(args: &[&str]) -> Command { let mut cmd = Command::new("tmux"); cmd.args(args); cmd } /// tmux command with stdout/stderr suppressed. pub fn tmux_silent(args: &[&str]) -> Command { let mut cmd = Command::new("tmux"); cmd.args(args).stdout(Stdio::null()).stderr(Stdio::null()); cmd }