package odig

  1. Overview
  2. Docs

Module Odig_support.OpamSource

Lookup package opam metadata.

opam metadata

Sourcetype t

The type for opam metadata.

Sourceval authors : t -> string list

authors i is the authors: field.

Sourceval bug_reports : t -> string list

bug_reports i is the bug-reports: field.

Sourceval depends : t -> string list

depends i is the depends: field.

Sourceval dev_repo : t -> string list

dev_repo i is the dev-repo: field.

Sourceval doc : t -> string list

doc i is the doc: field.

Sourceval homepage : t -> string list

homepage i is the homepage: field.

Sourceval license : t -> string list

license i is the license: field.

Sourceval maintainer : t -> string list

maintainer i is the maintainer: field.

Sourceval synopsis : t -> string

synopsis i is the synopsis: field.

Sourceval tags : t -> string list

info_tags i are the package's tags.

Sourceval version : t -> string

version i is the package's version.

Queries

Sourceval file : Pkg.t -> B0_std.Fpath.t option

file pkg is the opam file of package pkg (if any).

Sourceval query : Pkg.t list -> (Pkg.t * t) list

query pkgs queries the opam files associated to the given packages (if any).

Note. It is better to batch queries, opam show is quite slow (at least until v2.0.3).