forked from ocaml/opam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopamClientConfig.mli
175 lines (167 loc) · 5.28 KB
/
opamClientConfig.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
(**************************************************************************)
(* *)
(* Copyright 2015-2020 OCamlPro *)
(* *)
(* All rights reserved. This file is distributed under the terms of the *)
(* GNU Lesser General Public License version 2.1, with the special *)
(* exception on linking described in the file LICENSE. *)
(* *)
(**************************************************************************)
(** Configuration options for the client lib (record, global reference, setter,
initialisation), plus helper for global setup *)
module E: sig
type OpamStd.Config.E.t +=
| ASSUMEDEPEXTS of bool option
| AUTOREMOVE of bool option
| CLI of string option
| DROPWORKINGDIR of bool option
| EDITOR of string option
| FAKE of bool option
| IGNOREPINDEPENDS of bool option
| INPLACEBUILD of bool option
| JSON of string option
| KEEPBUILDDIR of bool option
| NOAGGREGATE of bool option
| NOAUTOUPGRADE of bool option
| NOSELFUPGRADE of string option
| PINKINDAUTO of bool option
| REUSEBUILDDIR of bool option
| ROOTISOK of bool option
| SHOW of bool option
| SKIPUPDATE of bool option
| STATS of bool option
| WORKINGDIR of bool option
| VERBOSEON of string list option
val cli: unit -> string option
val rootisok: unit -> bool option
val noaggregate: unit -> bool option
val noselfupgrade: unit -> string option
end
type t = private {
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;
scrubbed_environment_variables: string list;
verbose_on:OpamTypes.name_set;
}
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 ->
?scrubbed_environment_variables:string list ->
?verbose_on:OpamTypes.name_set ->
'a
(* constraint 'a = 'b -> 'c *)
include OpamStd.Config.Sig
with type t := t
and type 'a options_fun := 'a options_fun
(** Extra files included in [opam search] *)
val search_files: string list
(** Load the global configuration file (opamroot/config) and initialise all opam
sub-libraries, overriding the given arguments *)
val opam_init:
?root_dir:OpamTypes.dirname ->
?strict:bool ->
?solver:(module OpamCudfSolver.S) 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 ->
?scrubbed_environment_variables:string list ->
?verbose_on:OpamTypes.name_set ->
?original_root_dir:OpamTypes.dirname ->
?current_switch:OpamSwitch.t ->
?switch_from:OpamStateTypes.provenance ->
?jobs:int Lazy.t ->
?dl_jobs:int ->
?build_test:bool ->
?build_doc:bool ->
?dev_setup:bool ->
?dryrun:bool ->
?makecmd:string 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 Lazy.t ->
?solver_preferences_upgrade:string option Lazy.t ->
?solver_preferences_fixup:string option Lazy.t ->
?solver_preferences_best_effort_prefix: string option Lazy.t ->
?solver_timeout:float option ->
?solver_tolerance:float option ->
?solver_allow_suboptimal:bool ->
?cudf_trim:string option ->
?dig_depth:int ->
?preprocess:bool ->
?version_lag_power:int ->
?download_tool:(OpamTypes.arg list * OpamRepositoryConfig.dl_tool_kind) Lazy.t ->
?validation_hook:OpamTypes.arg list option ->
?retries:int ->
?force_checksums:bool option ->
?repo_tarring:bool ->
?debug_level:int ->
?debug_sections:OpamStd.Config.sections ->
?verbose_level:OpamStd.Config.level ->
?color:OpamStd.Config.when_ ->
?utf8:OpamStd.Config.when_ext ->
?disp_status_line:OpamStd.Config.when_ ->
?confirm_level:OpamStd.Config.answer ->
?yes:bool option ->
?safe_mode:bool ->
?keep_log_dir:bool ->
?errlog_length:int ->
?merged_output:bool ->
?precise_tracking:bool ->
?cygbin:string ->
?git_location:string ->
unit -> unit