Skip to main content

commit_wizard/core/
mod.rs

1//! Core application logic and context management.
2//!
3//! This module provides the foundational abstractions for the application, including
4//! the [`Context`] which holds application state, error handling, and use case definitions.
5//!
6//! ## Submodules
7//!
8//! - [`bootstrap`]: Application initialization and context building
9//! - [`context`]: Core [`Context`] type and state management
10//! - [`error`]: Error types and conversion utilities
11//! - [`usecases`]: Re-exported use cases (operations) available in the application
12//!
13//! The flow is typically:
14//! 1. [`bootstrap::build_app_context()`] creates the [`Context`]
15//! 2. Use cases are executed via context methods
16//! 3. Errors are reported using [`report_error()`]
17
18pub mod bootstrap;
19pub mod context;
20pub mod error;
21pub mod usecases;
22
23pub use context::Context;
24pub use error::CoreResult;
25pub use error::exit_code;
26pub use error::report_error;
27
28pub use usecases::*;