package opam-client

  1. Overview
  2. Docs

Configuration options for the client lib (record, global reference, setter, initialisation), plus helper for global setup

type t = private {
  1. print_stats : bool;
  2. pin_kind_auto : bool;
  3. autoremove : bool;
  4. editor : string;
  5. keep_build_dir : bool;
  6. reuse_build_dir : bool;
  7. inplace_build : bool;
  8. working_dir : bool;
  9. drop_working_dir : bool;
  10. ignore_pin_depends : bool;
  11. show : bool;
  12. fake : bool;
  13. skip_dev_update : bool;
  14. json_out : string option;
  15. root_is_ok : bool;
  16. no_auto_upgrade : bool;
  17. assume_depexts : bool;
  18. cli : OpamCLIVersion.t;
}
type 'a options_fun = ?print_stats:bool -> ?pin_kind_auto:bool -> ?autoremove:bool -> ?editor:string -> ?keep_build_dir:bool -> ?reuse_build_dir:bool -> ?inplace_build:bool -> ?working_dir:bool -> ?drop_working_dir:bool -> ?ignore_pin_depends:bool -> ?show:bool -> ?fake:bool -> ?skip_dev_update:bool -> ?json_out:string option -> ?root_is_ok:bool -> ?no_auto_upgrade:bool -> ?assume_depexts:bool -> ?cli:OpamCLIVersion.t -> 'a
include OpamStd.Config.Sig with type t := t and type 'a options_fun := 'a options_fun
val default : t
val set : t -> (unit -> t) options_fun
val setk : (t -> 'a) -> t -> 'a options_fun
val r : t Stdlib.ref
val update : ?noop:'a -> (unit -> unit) options_fun
val init : ?noop:'a -> (unit -> unit) options_fun
val initk : 'a -> 'a options_fun
val search_files : string list

Extra files included in opam search

val opam_init : ?root_dir:OpamTypes.dirname -> ?strict:bool -> ?solver:(module OpamCudfSolver.S) Stdlib.Lazy.t -> ?skip_version_checks:bool -> ?all_parens:bool -> ?log_dir:OpamTypes.dirname -> ?print_stats:bool -> ?pin_kind_auto:bool -> ?autoremove:bool -> ?editor:string -> ?keep_build_dir:bool -> ?reuse_build_dir:bool -> ?inplace_build:bool -> ?working_dir:bool -> ?drop_working_dir:bool -> ?ignore_pin_depends:bool -> ?show:bool -> ?fake:bool -> ?skip_dev_update:bool -> ?json_out:string option -> ?root_is_ok:bool -> ?no_auto_upgrade:bool -> ?assume_depexts:bool -> ?cli:OpamCLIVersion.t -> ?current_switch:OpamSwitch.t -> ?switch_from:OpamStateTypes.provenance -> ?jobs:int Stdlib.Lazy.t -> ?dl_jobs:int -> ?build_test:bool -> ?build_doc:bool -> ?dryrun:bool -> ?makecmd:string Stdlib.Lazy.t -> ?ignore_constraints_on:OpamPackage.Name.Set.t -> ?unlock_base:bool -> ?no_env_notice:bool -> ?locked:string option -> ?no_depexts:bool -> ?cudf_file:string option -> ?best_effort:bool -> ?solver_preferences_default:string option Stdlib.Lazy.t -> ?solver_preferences_upgrade:string option Stdlib.Lazy.t -> ?solver_preferences_fixup:string option Stdlib.Lazy.t -> ?solver_preferences_best_effort_prefix:string option Stdlib.Lazy.t -> ?solver_timeout:float option -> ?solver_allow_suboptimal:bool -> ?download_tool: (OpamTypes.arg list * OpamRepositoryConfig.dl_tool_kind) Stdlib.Lazy.t -> ?validation_hook:OpamTypes.arg list option -> ?retries:int -> ?force_checksums:bool option -> ?debug_level:int -> ?debug_sections:int option OpamCoreConfig.StringMap.t -> ?verbose_level:int -> ?color:[ `Always | `Auto | `Never ] -> ?utf8:[ `Always | `Auto | `Extended | `Never ] -> ?disp_status_line:[ `Always | `Auto | `Never ] -> ?answer:bool option -> ?safe_mode:bool -> ?keep_log_dir:bool -> ?errlog_length:int -> ?merged_output:bool -> ?use_openssl:bool -> ?precise_tracking:bool -> unit -> unit

Load the global configuration file (opamroot/config) and initialise all opam sub-libraries, overriding the given arguments

OCaml

Innovation. Community. Security.