package opam-core

  1. Overview
  2. Docs

Configuration options for the core lib (record, global reference and setter)

type t = private {
  1. debug_level : int;
    (*

    Controls debug messages, 0 to disable

    *)
  2. verbose_level : int;
    (*

    Controls printing of external commands and output, 0 to disable, more means print more low-level commands

    *)
  3. color : [ `Always | `Never | `Auto ];
    (*

    Console ANSI color control

    *)
  4. utf8 : [ `Extended | `Always | `Never | `Auto ];
    (*

    Controls usage of UTF8 in OPAM-generated messages. Extended adds camel emojis

    *)
  5. disp_status_line : [ `Always | `Never | `Auto ];
    (*

    Controls on-line display of parallel commands being run, using ANSI escapes

    *)
  6. answer : bool option;
    (*

    Affects interactive questions in OpamConsole: auto-answer with the given bool if Some

    *)
  7. safe_mode : bool;
    (*

    Fail on writes or delays, don't ask questions (for quick queries, e.g. for shell completion)

    *)
  8. log_dir : string;
    (*

    Where to store log and temporary files (output from commands...)

    *)
  9. keep_log_dir : bool;
    (*

    Whether to cleanup temporary and log files on exit

    *)
  10. errlog_length : int;
    (*

    The number of log lines displayed on process error. 0 for all

    *)
  11. merged_output : bool;
    (*

    If set, stderr of commands is merged into their stdout

    *)
  12. use_openssl : bool;
    (*

    If false, will use built-in hash functions without checking for an openssl executable first

    *)
  13. precise_tracking : bool;
    (*

    If set, will take full md5 of all files when checking diffs (to track installations), rather than rely on just file size and mtime

    *)
}
type 'a options_fun = ?debug_level:int -> ?verbose_level:int -> ?color:[ `Always | `Never | `Auto ] -> ?utf8:[ `Extended | `Always | `Never | `Auto ] -> ?disp_status_line:[ `Always | `Never | `Auto ] -> ?answer:bool option -> ?safe_mode:bool -> ?log_dir:string -> ?keep_log_dir:bool -> ?errlog_length:int -> ?merged_output:bool -> ?use_openssl:bool -> ?precise_tracking:bool -> 'a
val default : t
val set : t -> (unit -> t) options_fun
val setk : (t -> 'a) -> t -> 'a options_fun
val update : ?noop:_ -> (unit -> unit) options_fun
OCaml

Innovation. Community. Security.