clparser
clparser
is a command line tool for parsing CHANGELOG files that use the Keep
A Changelog format. The CHANGELOG file can be Markdown, JSON, or YAML format
and can also be output into any of those formats once parsed.
(fork marcaddeo/clparse)
Installation
Cargo
$ cargo install clparser
Usage
clparser 0.1.1
Marc Addeo <hi@marc.cx>
A command line tool for parsing CHANGELOG.md files that use the Keep A Changelog format.
USAGE:
clparser [FLAGS] [OPTIONS] <FILE>
FLAGS:
-h, --help Prints help information
-n, --no-wrap Disable wrapping of change entries of a release. By default, change entries are wrapped at 80
characters.
-V, --version Prints version information
OPTIONS:
-f, --format <format> Sets the output format of the parsed CHANGELOG [default: markdown] [possible values:
json, yaml, yml, markdown, md]
-s, --separator <separator> Sets the separator character used between version and date in a release heading
[default: -]
-w, --wrap-at <wrap-at> Specify how many characters to wrap change entries at [default: 80]
ARGS:
<FILE> The CHANGELOG file to parse. This should be either a Markdown, JSON, or Yaml representation of a
changelog. Use '-' to read from stdin.
Examples
By default, clparser
will parse the input file, and output the changelog in
markdown format.
$ clparser CHANGELOG.md
-
-
-
-
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
We can transform the markdown into a format that can be easily used in scripts:
$ clparser -f json CHANGELOG.md
clparser
can also parse JSON and YAML representations of the changelog:
$ clparser CHANGELOG.json
-
-
-
-
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
And finally, we can read from stdin by passing -
as the FILE
argument:
-
-
-
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).