changelogger

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: MIT Imports: 8 Imported by: 0

README

changelogger

A changelog file generator heavily inspired on towncrier.

Why?

I'm looking for an alternative to towncrier that doesn't require a Python environment, so I decided to build one with only basic features.

Install from source

$ go get github.com/drgarcia1986/changelogger

How it works?

$ changelogger -h
Usage of changelogger:
  -dir string
        Directory of changelog entries
  -path string
        Path of the changelog file
  -version string
        The release version

$ changelogger -dir ./.changelog -path ./CHANGELOG.md -version v1.1.2

changelogger will search for files on the directory of changelog entries (flag -dir) that contains the follow extensions:

  • .added
  • .changed
  • .removed
  • .fixed

Each file represents an entry on changelog and the extension defines which session the entry will be added to.

After collecting all entries, changelogger remove the entry file and edit the changelog file (flag -path) replacing the placeholder [changelogger-notes]:: for the content of the entries with a version header (flag -version). F.ex:

# Changelog

- [changelogger-notes]::
+ [changelogger-notes]::
+
+ ## v0.0.1 (2021-05-22)
+ ### Added
+ * A new cool feature
+
+ ## Removed
+ * The deprecated feature

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL