Module B0_opamSource

B0 opam support.

See the B0 opam manual for more details.

opam tool

Sourceval get_cmd : ?search:B0_std.Fpath.t list -> ?cmd:B0_std.Cmd.t -> unit -> (B0_std.Cmd.t, string) result

get_cmd () looks for opam wih B0_std.Os.Cmd.get.

opam files

Sourcemodule File : sig ... end

opam file generation.

opam Metadata

Sourceval tag : unit B0_meta.key

tag indicates the entity is related to opam. Adding this tag to a pack makes it represent an opam package for B0's opam tooling.

Sourceval pkg_name_of_pack : B0_pack.t -> string

pkg_name_of_pack p derives an opam package name for p. This is either in order:

  1. The Meta.name field of p's meta, if defined.
  2. The B0_pack.basename of p if not equal to "default".
  3. The basename of p's scope directory.
Sourcemodule Meta : sig ... end

opam metadata.

Cmdlets

Sourcemodule Cmdlet : sig ... end

.opam.* cmdlets.