1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Reusable layers for the ChronoGit terminal application.
//!
//! ChronoGit is a read-only Git history and working-tree source explorer. This crate exposes the
//! domain model, the bounded Git adapter, the application state machine, and
//! the terminal presentation layer used by the `chronogit` binary.
//!
//! The modules follow a one-way dependency flow:
//!
//! - [`domain`] owns validated values and has no process or terminal I/O.
//! - [`git`] translates read-only Git output into domain values.
//! - [`app`] turns user intent into state transitions and typed Git effects.
//! - [`tui`] maps terminal input to actions and renders application state.
//!
//! Most embedders start at [`git::GitService`] when they need repository data,
//! or at [`app::AppState`] and [`tui::run`] when constructing the complete TUI.
//!
//! # Example
//!
//! ```no_run
//! use std::path::Path;
//!
//! use chronogit::git::{GitService, SystemGitRunner};
//!
//! # fn main() -> Result<(), chronogit::git::GitError> {
//! let repository = GitService::discover(SystemGitRunner, Path::new("."))?;
//! for change in repository.changes()? {
//! println!("{} {}", change.kind().label(), change.path());
//! }
//! # Ok(())
//! # }
//! ```