This is a command-line utility for generating changelogs from Git commits. It allows generating changelogs in different formats and saving the result to a file or displaying it in the terminal.
- Generate changelogs from Git commits.
- Support for different changelog formats (Markdown, plain text, etc.).
- Option to save the generated changelog to a file.
- Rust installed on your machine. You can install Rust by following the instructions on the official website.
-
Clone the repository:
git clone https://github.com/your-username/changelog-generator.git cd changelog-generator
-
Build the project:
cargo build --release
-
Run the utility:
./target/release/changelog-generator --output changelog.md
--output <file>
: Specifies the file where the changelog will be saved. If not specified, the changelog will be displayed in the terminal.
Watch the following demo video to see the changelog generator in action:
demo.mov
clap
: For command-line argument parsing.git2
: For interacting with Git repositories.chrono
: For date and time manipulation.
src/cli.rs
: Module responsible for command-line argument parsing.src/git.rs
: Module responsible for interacting with Git and obtaining commits.src/changelog.rs
: Module responsible for generating the changelog from commits.src/file_utils.rs
: Module responsible for saving the changelog to a file.
Contributions are welcome! Feel free to open issues and pull requests.
This project is licensed under the MIT License. See the LICENSE
file for details.
This README provides an overview of the utility, how to use it, the libraries used, and the project structure. Feel free to customize it as needed.