opam-client
OpamCLIVersion
CLI Versions
include OpamStd.ABSTRACT
type t
val equal : t -> t -> bool
val to_string : t -> string
val to_json : t OpamJson.encoder
val of_json : t OpamJson.decoder
module Set : OpamStd.SET with type elt = t
module Map : OpamStd.MAP with type key = t
val current : t
The current version of the CLI (major and minor of OpamVersion.current
val default : t
val is_supported : t -> bool
Tests whether a valid CLI version is supported by the client library
val of_string_opt : string -> t option
'a option version of to_string
'a option
to_string
val of_string : string -> t
val (>=) : t -> (int * int) -> bool
Comparison >= with (major, minor)
>=
(major, minor)
val (<) : t -> (int * int) -> bool
Comparison < with (major, minor)
<
val compare : t -> t -> int
val previous : t -> t
Returns previous supported version.
Not_found
if there isn't one.
module Sourced : sig ... end
module Op : sig ... end