semver-select

command module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 10 Imported by: 0

README

semver-select

Contributions welcome.

Install With bindown

bindown template-source add semver-select https://github.com/WillAbides/semver-select/releases/latest/download/bindown.yaml
bindown dependency add semver-select --source semver-select -y

Usage

Usage: semver-select --constraint=STRING [<candidates> ...]

semver-select selects matching semvers from a list.

For example, get the newest version of go 1.15 like so:

    curl -Ls 'https://golang.org/dl/?mode=json&include=all' \
      | jq -r '.[].version' \
      | sed 's/^go//g' \
      | semver-select -i -c '1.15' -

Arguments:
  [<candidates> ...]    candidate versions to consider -- value of "-" indicates stdin

Flags:
  -h, --help                   Show context-sensitive help.
  -v, --version                output semver-select version and exit
  -c, --constraint=STRING      semver constraint to match
  -n, --max-results=INT        maximum number of results to output
  -i, --ignore-invalid         ignore invalid candidates instead of erroring
      --validate-constraint    just validate the constraint. exits non-zero if invalid
      --go                     allow go-style versions for candidates (e.g. 1.15rc1 or go1.20)
      --orig                   output original version strings instead of normalized versions

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