package env_config

  1. Overview
  2. Docs
type t
val t_of_sexp : Sexplib0.Sexp.t -> t
val environment_variable : string

The environment variable used to retrieve configuration overrides

val documentation : string

What to display when the environment variable is malformed, in addition to some helpful information

val allow_extra_fields : bool

Allow extra fields to be present in the configuration sexp deserializer. Most users will want this to be true, as it is unlikely the configuration will always be the same type, and most types are not versioned.

val default_path : unit -> string

The default configuration

val load_from_disk : path:string -> t

How to load a configuration from disk. This will be used in conjunction with default_path if no override is provided.

OCaml

Innovation. Community. Security.