package opam-lib
The OPAM library
Install
Dune Dependency
Authors
-
TThomas Gazagnaire <thomas@gazagnaire.org>
-
AAnil Madhavapeddy <anil@recoil.org>
-
FFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
-
FFrederic Tuong <tuong@users.gforge.inria.fr>
-
LLouis Gesbert <louis.gesbert@ocamlpro.com>
-
GGuillem Rieu <guillem.rieu@ocamlpro.com>
-
VVincent Bernardoff <vb@luminar.eu.org>
-
RRoberto Di Cosmo <roberto@dicosmo.org>
Maintainers
Sources
1.3.1.tar.gz
sha256=625767c3465219cc8799aad1449c74279b31686db0821300cfdb92fbff17e9fd
md5=e0688c0cf9a55f93ee93f62d07cf6b74
doc/opam-lib.format/Opam_admin_top/index.html
Module Opam_admin_top
Small lib for writing opam-repo admin scripts
val repo : OpamTypes.repository
The current repo (taken from CWD !)
val packages : OpamPackage.Set.t
All defined packages in the current repo
val compilers : OpamCompiler.Set.t
All defined compilers in the current repo
val iter_packages_gen :
?quiet:bool ->
(OpamPackage.t ->
prefix:string option ->
opam:OpamFile.OPAM.t ->
descr:OpamFile.Descr.t option ->
url:OpamFile.URL.t option ->
dot_install:OpamFile.Dot_install.t option ->
OpamFile.OPAM.t
* OpamFile.Descr.t action
* OpamFile.URL.t action
* OpamFile.Dot_install.t action) ->
unit
Maps on the files of every package. Only changed files are written back to disk.
val filter_packages : string list -> OpamPackage.t -> bool
Turn a list of glob patterns into a proper filtering function on package names.
val iter_packages :
?quiet:bool ->
?filter:(OpamPackage.t -> bool) ->
?f:(OpamPackage.t -> string option -> OpamFile.OPAM.t -> unit) ->
?opam:(OpamPackage.t -> OpamFile.OPAM.t -> OpamFile.OPAM.t) ->
?descr:(OpamPackage.t -> OpamFile.Descr.t -> OpamFile.Descr.t) ->
?url:(OpamPackage.t -> OpamFile.URL.t -> OpamFile.URL.t) ->
?dot_install:
(OpamPackage.t -> OpamFile.Dot_install.t -> OpamFile.Dot_install.t) ->
unit ->
unit
Quicker interface when considering a single type of file
val iter_compilers_gen :
?quiet:bool ->
(OpamCompiler.t ->
prefix:string option ->
comp:OpamFile.Comp.t ->
descr:OpamFile.Descr.t option ->
OpamFile.Comp.t * OpamFile.Descr.t action) ->
unit
Similarly for compiler descriptions
val filter_compilers : string list -> OpamCompiler.t -> bool
Turn a list of glob patterns into a proper filtering function on compiler names.
val iter_compilers :
?quiet:bool ->
?filter:(OpamCompiler.t -> bool) ->
?f:(OpamCompiler.t -> string option -> OpamFile.Comp.t -> unit) ->
?comp:(OpamCompiler.t -> OpamFile.Comp.t -> OpamFile.Comp.t) ->
?descr:(OpamCompiler.t -> OpamFile.Descr.t -> OpamFile.Descr.t) ->
unit ->
unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>