use thiserror::Error;
#[derive(Debug, Error)]
pub enum TmuxError {
#[error("tmux command failed: {command} — {stderr}")]
CommandFailed {
command: String,
stderr: String,
},
#[error("tmux not found in PATH")]
NotFound,
#[error("failed to parse tmux output: {0}")]
ParseError(String),
#[error("pane not found: {0}")]
PaneNotFound(String),
#[error(transparent)]
Io(#[from] std::io::Error),
}