Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marten-seemann/semver-highest
https://github.com/marten-seemann/semver-highest
Last synced: about 19 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/marten-seemann/semver-highest
- Owner: marten-seemann
- License: mit
- Created: 2021-10-11T17:43:32.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-13T08:34:46.000Z (about 3 years ago)
- Last Synced: 2024-12-20T00:08:48.435Z (4 days ago)
- Language: Go
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# semver-highest
A tool to determine the highest version number that's smaller than a target version number.
## Installation
```bash
go install github.com/marten-seemann/semver-highest@latest
```## Usage
```
./semver-highest -target v0.2.0 -versions v0.1.0,v0.1.1,v0.3.0 # v0.1.1
```By default, pre-releases are skipped
```
./semver-highest -target v0.2.0 -versions v0.1.0,v0.1.1,v0.1.2-alpha,v0.3.0 # v0.1.1
./semver-highest -target v0.2.0 -versions v0.1.0,v0.1.1,v0.1.2-alpha,v0.3.0 -prerelease # v0.1.2-alpha
```