package opam-client

  1. Overview
  2. Docs

CLI Versions

include OpamStd.ABSTRACT
type t
val of_string : string -> t
val to_string : t -> string
val to_json : t -> OpamJson.t
val of_json : OpamJson.t -> t option
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 is_supported : t -> bool

Tests whether a valid CLI version is supported by the client library

val env : OpamStd.Config.env_var -> t option

Parse the given environment variable as MAJOR.MINOR

val of_string_opt : string -> t option

'a option version of to_string

val (>=) : t -> (int * int) -> bool

Comparison >] with (major, minor)

val (<) : t -> (int * int) -> bool

Comparison < with (major, minor)

OCaml

Innovation. Community. Security.