functoria

A DSL to organize functor applications
IN THIS PACKAGE
Module Functoria_app . Make

Parameters

module P : S

Signature

val register : ?packages:Functoria.package list -> ?keys:Functoria.key list -> ?init:Functoria.job Functoria.impl list -> string -> Functoria.job Functoria.impl list -> unit

register name jobs registers the application named by name which will execute the given jobs. Same optional arguments as Functoria.foreign.

init is the list of job to execute before anything else (such as command-line argument parsing, log reporter setup, etc.). The jobs are always executed in the sequence specified by the caller.

val run : unit -> unit

Run the application builder. This should be called exactly once to run the application builder: command-line arguments will be parsed, and some code will be generated and compiled.