ecm-distro-tools/cmd/semv
Pedro Tashima 2068a71e2d
Add version to commands (#342)
* add version information

* set version on release action

---------

Co-authored-by: Pedro Tashima <pedro.tashima@suse.com>
2024-01-16 14:51:46 -03:00
..
Makefile Add version to commands (#342) 2024-01-16 14:51:46 -03:00
README.md
main.go

README.md

semv

semv provides subcommands to parse a semantic version, and to test if a version conforms to a semantic version constraint.

Examples

PRERELEASE=$(./bin/semv-darwin-amd64 parse --output go-template="{{ .Prerelease }}" v1.2.3)
if [ -n "$PRERELEASE" ]; then
  echo "Prerelease: $PRERELEASE"
fi

semv test v1.1 v1.1.1

Contributions

  • File Issue with details of the problem, feature request, etc.
  • Submit a pull request and include details of what problem or feature the code is solving or implementing.