Module Brzo_outcome
Outcomes
Outcome steps
type 'a build_dir_suff= B00.Memo.t -> Brzo.Conf.t -> 'a -> string B00.Memo.fiberThe type for build directory suffix determination.
build_dir_suff m c dcis a suffix added to the build directory name. It can be used if your outcome has multiple targets (see e.g. the OCaml domain) and you would like to be able to have them live in parallel in the build dir.
type 'a artefact= B00.Memo.t -> Brzo.Conf.t -> 'a -> build_dir:B0_std.Fpath.t -> B0_std.Fpath.t B00.Memo.fiberThe type for outcome artefact path determination.
artefact m c dc ~build_diris the absolute path, contained in the domain specificbuild_dirto the outcome artefact (can be a directory).
type 'a build= B00.Memo.t -> Brzo.Conf.t -> 'a -> build_dir:B0_std.Fpath.t -> artefact:B0_std.Fpath.t -> srcs:B0_fexts.map -> unit B00.Memo.fiberThe type for outcome artefact constructions.
build m c dc ~build_dir ~artefact ~srcsbuildsartefactfromsrcsusingm.build_diris clean.artefactis the result of theartefactfunction.
type 'a action= B00.Memo.t -> Brzo.Conf.t -> 'a -> build_dir:B0_std.Fpath.t -> artefact:B0_std.Fpath.t -> (unit -> (Brzo.Exit.t, string) Stdlib.result) B00.Memo.fiberThe type for outcome action.
action m c dc ~artefactreturns the action onartefact(already tested for existence and constructed by the outcome'sartefactfunction). When the function is called it is made sure that build was peformed, finished, and that it didn't error.
Outcomes
val v : name:string -> doc:string -> ?build_dir_suff:'a build_dir_suff -> artefact:'a artefact -> build:'a build -> action_has_args:bool -> action:'a action -> unit -> 'a tvdefines an outcome. See the corresponding accessors for the semantics of arguments.build_dir_suffdefaults tofun _ _ _ k -> k "".
val name : 'a t -> stringname ois the outcome name. Used in particular to define the command line option to select the outcome.
val build_dir_suff : 'a t -> 'a build_dir_suffbuild_dir_suff oiso's build directory suffix function.
val action_has_args : 'a t -> boolaction_has_args oistrueiff only the outcome action supports cli args.
val pre_outcome : 'a t -> Brzo.Pre_domain.outcomepre_outcome oisoas a pre-outcome.
Predefined actions
module Action : sig ... endPredefined actions.