#semver #tags #git #git-repository #git-tag

bin+lib git-semver-tags

Get all git semver tags of your repository in reverse chronological order

13 releases

0.0.12 Mar 2, 2023
0.0.11 Feb 28, 2023
0.0.7 Dec 3, 2022
0.0.2 Nov 20, 2022
0.0.1 Oct 30, 2022

#2943 in Command line utilities

40 downloads per month

MIT license

26KB
172 lines

git-semver-tags

Crates.io Crates.io Crates.io CI codecov

Get all git semver tags of your repository in reverse chronological order

Install

Run

$ cargo install git-semver-tags

Via cargo-binstall

You can install cargo-llvm-cov using cargo-binstall:

$ cargo binstall git-semver-tags

Usage

By default, it runs check. You can easily override this, though:

$ git-semver-tags [OPTIONS]

A few examples:

# Run get all tags
$ git-semver-tags

# Run to get lerna tag
$ git-semver-tags --lerna

# Run the lerna tag to get the specified package name
$ git-semver-tags --lerna --package <package>

# Runs get tag for the specified prefix
$ git-semver-tags --tag-prefix <prefix>

# Run get to ignore unstable tag
$ git-semver-tags --skip-unstable

# Run get label under the specified path
$ git-semver-tags --cwd <cwd>

# Run upgrade self version
$ git-semver-tags upgrade

There's a lot more you can do! Here's a copy of the help:

Get all git semver tags of your repository in reverse chronological order

Usage: git-semver-tags [OPTIONS] [COMMAND]

Commands:
 upgrade  upgrade self version
 help     Print this message or the help of the given subcommand(s)

Options:
     --lerna                parse lerna style git tags
     --package <package>    when listing lerna style tags, filter by a package
     --tag-prefix <prefix>  prefix to remove from the tags during their processing
     --cwd <cwd>            the current path where the command was run
     --skip-unstable        ignore unstable labels
 -h, --help                 Print help
 -V, --version              Print version

Dependencies

~3–18MB
~264K SLoC