package ez_config

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type config_file
val create_config_file : Ez_file.V1.FileAbstract.t -> config_file
val load : config_file -> unit
val append : config_file -> Ez_file.V1.FileAbstract.t -> unit
val save : config_file -> unit
val save_with_help : config_file -> unit
val set_config_file : config_file -> Ez_file.V1.FileAbstract.t -> unit
val set_before_save_hook : config_file -> int -> (unit -> unit) -> unit
val set_after_save_hook : config_file -> (unit -> unit) -> unit
val set_after_load_hook : config_file -> (unit -> unit) -> unit
type option_kind
type 'a config_option
type 'a option_class
val create_option : config_file -> string list -> ?short_help:string -> string list -> ?level:int -> 'a option_class -> 'a -> 'a config_option
val string_option : string option_class
val int_option : int option_class
val int64_option : int64 option_class
val bool_option : bool option_class
val flag_option : bool option_class
val with_option : bool option_class
val enable_option : bool option_class
val float_option : float option_class
val string2_option : (string * string) option_class
val list_option : 'a option_class -> 'a list option_class
val array_option : 'a option_class -> 'a array option_class
val intmap_option : ('a -> int) -> 'a option_class -> 'a EzCompat.IntMap.t option_class
val option_option : 'a option_class -> 'a option option_class
val smalllist_option : 'a option_class -> 'a list option_class
val sum_option : (string * 'a) list -> 'a option_class
val tuple2_option : ('a option_class * 'b option_class) -> ('a * 'b) option_class
val tuple3_option : ('a option_class * 'b option_class * 'c option_class) -> ('a * 'b * 'c) option_class
val tuple4_option : ('a option_class * 'b option_class * 'c option_class * 'd option_class) -> ('a * 'b * 'c * 'd) option_class
val tuple5_option : ('a option_class * 'b option_class * 'c option_class * 'd option_class * 'e option_class) -> ('a * 'b * 'c * 'd * 'e) option_class
module OP : sig ... end
include module type of OP
val (!!) : 'a config_option -> 'a
val (=:=) : 'a config_option -> 'a -> unit
type config_section
val create_config_section : config_file -> string list -> string -> config_section
module LowLevel : sig ... end
type load_error =
  1. | FileDoesNotExist
  2. | FileCannotBeRead
  3. | ParseError of int * string
  4. | FileHasTempBackup of Ez_file.V1.FileAbstract.t
  5. | SetOptionFailed of string * string
exception LoadError of Ez_file.V1.FileAbstract.t * load_error
val string_of_load_error : Ez_file.V1.FileAbstract.t -> load_error -> string
OCaml

Innovation. Community. Security.