package semv

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

SEMV

semv is a tool written in ocaml to bump semver.

Installation

Using opam

opam install semv

Usage

semv [-major] [-minor] [-patch] +/- <input>
  -major Set major
  -minor Set minor
  -patch Set patch
  -preserve By default pre-release and build info are discarded after modification, use this to preserve them.
  -help | --help Display this list of options
semv -major 0.0.1 # 1.0.0
semv -minor 0.0.1 # 0.1.0
semv -patch 0.0.1 # 0.0.2

semv -major 1.0.1-alpha+74a1c58b # 2.0.1
semv -major 1.0.1-alpha+74a1c58b -preserve # 2.0.1-alpha+74a1c58b

echo 1.0.1 | semv -major # 2.0.1

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

Apache-2.0

OCaml

Innovation. Community. Security.