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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
//! # Commit Wizard
//!
//! A lightweight Rust library for **Conventional Commits**, semantic versioning, and changelog automation.
//!
//! This crate provides the core functionality for validating commits, managing versions, generating
//! changelogs, and managing Git tags according to semantic versioning principles. It can be used
//! programmatically via the library interface or through the `cw` CLI binary.
//!
//! ## Modules
//!
//! - [`cli`]: Command-line interface implementation (public commands and arguments)
//! - [`core`]: Core application logic including bootstrap, context management, and use cases
//! - [`engine`]: Business logic layer with traits, models, capabilities, and configuration
//! - [`infra`]: Infrastructure layer for Git operations, UI interactions, and file system access
//!
//! ## Example Usage
//!
//! ```ignore
//! use commit_wizard::core::Context;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Create application context
//! let context = Context::new().await?;
//!
//! // Use context to access capabilities and operations
//! Ok(())
//! }
//! ```
//!
//! ## Conventional Commits
//!
//! This library enforces [Conventional Commits](https://www.conventionalcommits.org/) format:
//!
//! ```text
//! <type>(<scope>): <description>
//!
//! <body>
//!
//! <footer>
//! ```
//!
//! Supported types: `feat`, `fix`, `docs`, `style`, `refactor`, `perf`, `test`, `chore`, `ci`, `build`
//!
//! ## Semantic Versioning
//!
//! Version bumping follows [Semantic Versioning](https://semver.org/) principles:
//! - `MAJOR`: Breaking changes (`feat!` or `BREAKING CHANGE`)
//! - `MINOR`: New features (`feat`)
//! - `PATCH`: Bug fixes (`fix`)
/// A macro to create a vector of strings from a list of string literals.
};
}