tmux_tango/lib.rs
1//! # TmuxTango
2//!
3//! A CLI tool for managing tmux sessions.
4//!
5//! This crate provides functionality for tmux session management including
6//! operations like list, attach, kill, rename, and create sessions.
7//!
8//! ## Features
9//!
10//! - Session management operations (list, attach, kill, rename, create)
11//! - Smart attachment handling (attach vs switch-client)
12//! - Session caching for improved performance
13//! - Comprehensive error handling
14//!
15//! ## Example
16//!
17//! ```rust,no_run
18//! use tmux_tango::{TmuxClient};
19//! use anyhow::Result;
20//!
21//! fn main() -> Result<()> {
22//! let mut client = TmuxClient::new();
23//! let sessions = client.list_sessions()?;
24//! for session in sessions {
25//! println!("{}: {} windows", session.name, session.windows);
26//! }
27//! Ok(())
28//! }
29//! ```
30
31pub mod error;
32pub mod tmux;
33
34pub use error::TmuxFzfError;
35pub use tmux::{TmuxClient, TmuxPane, TmuxSession, TmuxWindow};