cosmos-sdk/cmd/sdkch
Alessio Treglia 648b43288b Merge PR #3828: Add sdkch to maintain PENDING.md effectively and free of file conflicts
Closes: #2380
2019-03-14 14:24:53 +01:00
..
README.md Merge PR #3828: Add sdkch to maintain PENDING.md effectively and free of file conflicts 2019-03-14 14:24:53 +01:00
main.go Merge PR #3828: Add sdkch to maintain PENDING.md effectively and free of file conflicts 2019-03-14 14:24:53 +01:00

README.md

sdkch

Simple tool to maintain modular changelogs

Usage

$ sdkch -help
usage: sdkch [-d directory] [-prune] command

Maintain unreleased changelog entries in a modular fashion.

Commands:
    add section stanza [message]    Add an entry file.
                                    If message is empty, start the editor to edit
                                    the message.
    generate [version]              Generate a changelog in Markdown format and print
                                    it to STDOUT. version defaults to UNRELEASED.

    Sections             Stanzas
         ---                 ---
    breaking                gaia
    features             gaiacli
improvements            gaiarest
    bugfixes                 sdk
                      tendermint

Flags:
  -d string
    	entry files directory (default "/home/alessio/work/tendermint/src/github.com/cosmos/cosmos-sdk/.pending")
  -prune
    	prune old entries after changelog generation

Add a new entry

You can either drop a text file in the appropriate directory or use the add command:

$ sdkch add features gaiacli '#3452 New cool gaiacli command'

If no message is provided, a new entry file is opened in an editor is started

Generate the full changelog

$ sdkch generate v0.30.0

The -prune flag would remove the old entry files after the changelog is generated.