Library
Module
Module type
Parameter
Class
Class type
Package descriptions.
val v :
dry_run:bool ->
?name:string ->
?version:string ->
?tag:string ->
?keep_v:bool ->
?delegate:Bos_setup.Cmd.t ->
?build_dir:Fpath.t ->
?opam:Fpath.t ->
?opam_descr:Fpath.t ->
?readme:Fpath.t ->
?change_log:Fpath.t ->
?license:Fpath.t ->
?distrib_uri:string ->
?distrib_file:Fpath.t ->
?publish_msg:string ->
?publish_artefacts:[ `Distrib | `Doc | `Alt of string ] list ->
?distrib:Distrib.t ->
unit ->
t
Infer the package list.
val name : t -> (string, Bos_setup.R.msg) Bos_setup.result
name p
is p
's name.
with_name t n
is r
such that like name r
is n
and f r
is f t
otherwise.
val version : t -> (string, Bos_setup.R.msg) Bos_setup.result
version p
is p
's version string.
val tag : t -> (string, Bos_setup.R.msg) Bos_setup.result
val delegate : t -> (Bos_setup.Cmd.t option, Bos_setup.R.msg) Bos_setup.result
delegate p
is p
's delegate.
val build_dir : t -> (Fpath.t, Bos_setup.R.msg) Bos_setup.result
build_dir p
is p
's build directory.
val opam : t -> (Fpath.t, Bos_setup.R.msg) Bos_setup.result
opam p
is p
's opam file.
val opam_descr : t -> (Opam.Descr.t, Bos_setup.R.msg) Bos_setup.result
opam_descr p
is p
's opam description.
val opam_homepage : t -> (string option, Bos_setup.R.msg) Bos_setup.result
val opam_doc : t -> (string option, Bos_setup.R.msg) Bos_setup.result
val opam_field :
t ->
string ->
(string list option, Bos_setup.R.msg) Bos_setup.result
opam_field p f
looks up field f
of p
's opam file.
val opam_fields :
t ->
(string list Bos_setup.String.map, Bos_setup.R.msg) Bos_setup.result
opam_fields p
are p
's opam file fields.
val readmes : t -> (Fpath.t list, Bos_setup.R.msg) Bos_setup.result
readmes p
are p
's readme files.
val readme : t -> (Fpath.t, Bos_setup.R.msg) Bos_setup.result
readme p
is the first element of readmes p
.
val change_logs : t -> (Fpath.t list, Bos_setup.R.msg) Bos_setup.result
change_logs p
are p
's change logs.
val change_log : t -> (Fpath.t, Bos_setup.R.msg) Bos_setup.result
change_log p
is the first element of change_logs p
.
val licenses : t -> (Fpath.t list, Bos_setup.R.msg) Bos_setup.result
licenses p
are p
's license files.
val distrib_uri : ?raw:bool -> t -> (string, Bos_setup.R.msg) Bos_setup.result
distrib_uri p
is p
's distribution URI. If raw
is true
defaults to false
, p
's raw URI distribution pattern is returned.
val distrib_file :
dry_run:bool ->
t ->
(Fpath.t, Bos_setup.R.msg) Bos_setup.result
distrib_file p
is p
's distribution archive.
val publish_msg : t -> (string, Bos_setup.R.msg) Bos_setup.result
publish_msg p
is p
's distribution publication message.
val distrib_archive :
dry_run:bool ->
keep_dir:bool ->
t ->
(Fpath.t, Bos_setup.R.msg) Bos_setup.result
distrib_archive ~keep_dir p
creates a distribution archive for p
and returns its path. If keep_dir
is true
the repository checkout used to create the distribution archive is kept in the build directory.
val distrib_archive_path : t -> (Fpath.t, Rresult.R.msg) Bos_setup.result
val archive_url_path : t -> (Fpath.t, Bos_setup.R.msg) Bos_setup.result
archive_url_path
is the path to the file where the archive download URL is saved
val distrib_filename :
?opam:bool ->
t ->
(Fpath.t, Bos_setup.R.msg) Bos_setup.result
distrib_filename ~opam p
is a distribution filename for p
. If opam
is true
(defaults to false
), the name follows opam's naming conventions.
val publish_artefacts :
t ->
([ `Distrib | `Doc | `Alt of string ] list, Bos_setup.R.msg) Bos_setup.result
publish_artefacts p
are p
's publication artefacts.
val doc_user_repo_and_path :
t ->
(string * string * Fpath.t, Bos_setup.R.msg) Bos_setup.result
val distrib_user_and_repo :
t ->
(string * string, Bos_setup.R.msg) Bos_setup.result
val test : f
val build : f
val clean : f