wsx_core/lib.rs
1//! wsx-core — worktree / tmux / git / hooks / config / model primitives.
2//!
3//! Extracted from the wsx binary so external orchestrators (notably auwsx)
4//! can drive the same workflow without subprocess overhead.
5//!
6//! Module layout:
7//! - [`ops`] — workspace business logic (create/delete worktree+session)
8//! - [`tmux`] — tmux CLI wrappers (session, capture, monitor)
9//! - [`git`] — git CLI wrappers (worktree, info, ops)
10//! - [`hooks`] — `.gtrconfig` post-create + gitignored-file copy
11//! - [`config`] — global TOML + per-project INI
12//! - [`model`] — shared data types (Project / WorktreeInfo / SessionInfo / GitInfo)
13//! - [`proc_tree`] — process tree snapshot (used by tmux::monitor)
14
15pub mod cache;
16pub mod config;
17pub mod git;
18pub mod hooks;
19pub mod model;
20pub mod ops;
21pub mod proc_tree;
22pub mod tmux;