module Loader: sig
.. end
Assemble file loader.
Loader
type
kind = [ `Toplevel ]
The type for kinds of loaders.
val pp_kind : Format.formatter -> kind -> unit
pp_kind ppf kind
prints an unspecified representation of kind
on ppf
.
type
t = {
|
kind : [ `Toplevel ] ; |
|
ocamlfind_exec : string ; |
|
auto_lib : bool ; |
|
includes : string list ; |
|
files : Assemblage.Path.t list ; |
}
The type for loader settings. TODO: we could add packages to the mix.
val load : ?level:Assemblage.Private.Log.level ->
t -> unit Assemblage.Private.Cmd.result
load l
loads according to settings l
. level
indicates
with which level file loads are logged, defaults to Level.Info
.
val pp : Format.formatter -> t -> unit
pp ppf l
prints an unspecified representation of l
on ppf
.
User interface
val ui : ?kinds:kind list ->
?files:Assemblage.Path.t list Cmdliner.Term.t ->
docs:string -> unit -> t Cmdliner.Term.t
ui ~docs
is a Cmdliner
term that defines a loader setting
value either through command line options or through environment
variables. An environment variable definition takes over a
corresponding command line option. kinds
lists the kind of
loaders that should be supported, if absent all loader are supported.
files
defines how files to load should be parsed from the command
line, default uses an optional argument.
val man_vars : ?kinds:kind list ->
unit -> Cmdliner.Manpage.block list