package opam-core

  1. Overview
  2. Docs
type env_var = string
val env_bool : env_var -> bool option
val env_int : env_var -> int option
val env_level : env_var -> int option
val env_string : env_var -> string option
val env_float : env_var -> float option
val env_when : env_var -> [ `Always | `Never | `Auto ] option
val env_when_ext : env_var -> [ `Extended | `Always | `Never | `Auto ] option
val resolve_when : auto:bool Stdlib.Lazy.t -> [ `Always | `Never | `Auto ] -> bool
val init : ?noop:_ -> (unit -> unit) OpamCoreConfig.options_fun

Sets the OpamCoreConfig options, reading the environment to get default values when unspecified

val initk : 'a -> 'a OpamCoreConfig.options_fun

Like init, but returns the given value. For optional argument stacking

module type Sig = sig ... end
OCaml

Innovation. Community. Security.