Crate git_semver_tags

source ·
Expand description

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

Structs

  • The command line specifies the parameters

Enums

Functions