Up

module OpamVersion

: sig

OPAM versions

include OpamMisc.ABSTRACT
#
val current : t

The current OPAM version

#
val major : t -> t

Extracts the major version

#
val nopatch : t -> t

Major+minor version, strips the patch version

#
val current_nopatch : t

The current OPAM version, truncated (only MAJOR.MINOR)

#
val git : t option

The 'git' version of OPAM

#
val full : t

The full version (current + git)

#
val magic : string

Magic string

#
val message : unit -> unit

Display the version message

#
val compare : t -> t -> int

Version comparison

end