wsx-core 0.16.2

Library crate for wsx: worktree, tmux, git, hooks, config, model primitives. Ratatui-free; consumable by wsx binary and external orchestrators (e.g. auwsx).
Documentation
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
}