gotaglog

command module
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2025 License: MIT Imports: 1 Imported by: 0

README

gotaglog

Go Report Card

GoTagLog is a simple command-line application to automatically generate a changelog from git tags based on the semantic versioning. It categorizes commits into groups and outputs them in a formatted markdown file or directly to the terminal with highlighting.

Prerequisites

To use GoTagLog, you'll need to have:

  • Go installed on your local machine.

Installation

go install github.com/frgrisk/gotaglog@latest

Usage

To generate a changelog, use the following command:

gotaglog
Flags

The application accepts several flags:

  • --config: path to configuration file (default is $HOME/.gotaglog.yaml).
  • -o, --output: path to output file (default if to print to stdout).
  • -r, --repo: repo to generate changelog for (default is current directory).
  • -t, --tag: semantic version tag for unreleased changes (default is "unreleased").
  • --inc-patch: increment patch version (default is false). Takes precedence over --tag.
  • --inc-minor: increment patch version (default is false). Takes precedence over --inc-patch and --tag.
  • --inc-major: increment patch version (default is false). Takes precedence over --inc-minor, --inc-patch, and --tag.
  • --unreleased: show only unreleased changes.
Environment variables

In addition to flags and the configuration file, you can also use environment variables to set parameters. The application will automatically look for any environment variables beginning with GOTAGLOG_. For instance, to set the repo, you could use the following command:

export GOTAGLOG_REPO=/path/to/repo

License

GoTagLog is released under the MIT License. See the LICENSE file for more details.

Acknowledgments

Documentation

Overview

Copyright © 2023 FRG

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳