Crates.io | git-chlog |
lib.rs | git-chlog |
version | 0.1.0 |
source | src |
created_at | 2021-07-08 12:12:12.209428 |
updated_at | 2021-07-08 12:12:12.209428 |
description | Release changelog generator for Git-enabled projects |
homepage | |
repository | https://github.com/DenysVuika/git-changelog |
max_upload_size | |
id | 420307 |
size | 25,047 |
Simple tool for release changelog reports with multiple template support.
Features
You can get usage details by running the command with the --help
argument:
./git-chlog --help
USAGE:
git-chlog [FLAGS] [OPTIONS] <range>
ARGS:
<range> Commit range, i.e. master..develop
FLAGS:
-h, --help Prints help information
-v, --verbose Verbose output
-V, --version Prints version information
OPTIONS:
-c, --config <path> Sets a custom config file [default: default.conf]
-d, --dir <path> Working directory [default: .]
-n, --max-count <number> Limit the number of commits to output
-o, --output <output> Output file, will use console output if not defined
--skip <number> Skip number commits before starting to show the commit output
-t, --template <template> Path to the custom output template
# generate release log with markdown format using changes between develop and master branches
./git-chlog -d ~/github/my-app master..develop > v1.md
# generate release log with HTML format using changes between develop and master branches
./git-chlog -d ~/github/my-app master..develop -t ./assets/templates/html.hbs > v1.html
The tool supports Handlebars templating language.
Output templates:
Simple Markdown template example looks like the following:
# Changelog
{{#each commits as |commit|}}
- [{{commit.hash}}]({{../repo_url}}/commit/{{commit.hash}}) {{commit.subject}}
{{/each}}
# debug build
cargo build
# release build
cargo build --release
MIT License, see LICENCE for more details.