package opam-client
Install
dune-project
Dependency
Authors
-
VVincent Bernardoff <vb@luminar.eu.org>
-
RRaja Boujbel <raja.boujbel@ocamlpro.com>
-
RRoberto Di Cosmo <roberto@dicosmo.org>
-
TThomas Gazagnaire <thomas@gazagnaire.org>
-
LLouis Gesbert <louis.gesbert@ocamlpro.com>
-
FFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
-
AAnil Madhavapeddy <anil@recoil.org>
-
GGuillem Rieu <guillem.rieu@ocamlpro.com>
-
RRalf Treinen <ralf.treinen@pps.jussieu.fr>
-
FFrederic Tuong <tuong@users.gforge.inria.fr>
Maintainers
Sources
md5=e84acfd52f578505c16dc9d21c99d17c
sha512=a0db42f67a41d9ee5f4015a153fa9133ca6a33201f7db6b8b5562bccdda45f8af5032dc9c863bd3eaeef74ba4a3e4a099556faa3d01e66b6e5cf8ebdd52244fe
doc/opam-client/OpamListCommand/index.html
Module OpamListCommandSource
Functions handling the "opam list" subcommand
Switches to determine what to include when querying (reverse) dependencies
type pattern_selector = {case_sensitive : bool;exact : bool;glob : bool;fields : string list;ext_fields : bool;(*Match on raw strings in
*)x-foofields
}type selector = | Any| Installed| Root| Compiler| Available| Installable| Pinned| Depends_on of dependency_toggles * OpamTypes.atom list| Required_by of dependency_toggles * OpamTypes.atom list| Conflicts_with of OpamTypes.package list| Coinstallable_with of dependency_toggles * OpamTypes.package list| Solution of dependency_toggles * OpamTypes.atom list| Pattern of pattern_selector * string| Atoms of OpamTypes.atom list| Flag of OpamTypes.package_flag| Tag of string| From_repository of OpamTypes.repository_name list| Owns_file of OpamTypes.filename
Package selectors used to filter the set of packages
val filter :
base:OpamTypes.package_set ->
'a OpamStateTypes.switch_state ->
selector OpamFormula.formula ->
OpamTypes.package_setApplies a formula of selectors to filter the package from a given switch state
Or-filter on package patterns (NAME or NAME.VERSION)
val get_depexts :
'a OpamStateTypes.switch_state ->
OpamTypes.package_set ->
OpamStd.String.Set.tGet the aggregated active external dependencies of the given packages
Lists the given aggregated active external dependencies of the given packages
type output_format = | Name(*Name without version
*)| Version(*Version of the currently looked-at package
*)| Package(*
*)name.version| Synopsis(*One-line package description
*)| Synopsis_or_target(*Pinning target if pinned, synopsis otherwise
*)| Description(*The package description, excluding synopsis
*)| Field of string(*The value of the given opam-file field
*)| Installed_version(*Installed version or "--" if none
*)| Pinning_target(*Empty string if not pinned
*)| Source_hash(*The VC-reported ident of current version, for dev packages. Empty if not available
*)| Raw(*The full contents of the opam file (reformatted)
*)| All_installed_versions(*List of the installed versions in all switches with the corresponding switches in brackets
*)| Available_versions(*List of the available versions (currently installed one in bold if color enabled)
*)| All_versions(*List of the existing package versions (installed, installed in current switch and unavailable colored specifically if color enabled)
*)| Repository(*The repository the package was found in (may be empty for pinned packages)
*)| Installed_files(*The list of files that the installed package added to the system
*)| VC_ref(*The version-control branch or tag the package url is bound to, if any
*)| Depexts(*The external dependencies
*)
Element of package information to be printed. Fixme: should be part of the run-time man!
val get_switch_state :
'a OpamStateTypes.global_state ->
OpamStateTypes.unlocked OpamStateTypes.switch_stateGets either the current switch state, if a switch is selected, or a virtual state corresponding to the configured repos
For documentation, includes a dummy '<field>:' for the Field format
type package_listing_format = {short : bool;header : bool;columns : output_format list;all_versions : bool;wrap : [ `Wrap of string | `Truncate | `None ] option;separator : string;value_printer : [ `Normal | `Pretty | `Normalised ];order : [ `Standard | `Dependency | `Custom of OpamTypes.package -> OpamTypes.package -> int ];
}val display :
'a OpamStateTypes.switch_state ->
package_listing_format ->
OpamTypes.package_set ->
unitOutputs a list of packages as a table according to the formatting options. normalise supersedes prettify and uses a canonical way of displaying package definition file fields. prettify uses a nicer to read format for the package definition file fields.
val info :
'a OpamStateTypes.switch_state ->
fields:string list ->
raw_opam:bool ->
where:bool ->
?normalise:bool ->
?show_empty:bool ->
OpamTypes.atom list ->
unitDisplay a general summary of a collection of packages.
Prints the value of an opam field in a shortened way (with prettify -- the default -- puts lists of strings in a format that is easier to read