B0caml
b0caml
support.
module Exit : sig ... end
b0caml
exit codes.
module Env : sig ... end
b0caml
environment variables.
module Conf : sig ... end
b0caml
configuration.
module Err : sig ... end
b0caml
error messages.
val get_script_file :
Conf.t ->
string ->
(B0_std.Fpath.t, string) Stdlib.result
get_script_file c file
is the absolute paths to script file
.
val script_build_dir : Conf.t -> script_file:B0_std.Fpath.t -> B0_std.Fpath.t
script_build_dir c ~script_file
is a build directory in the cache directory of c
for script ~script_file
.
script_build_log ~build_dir
is a build log file in build_dir
.
val get_script : Conf.t -> string -> (B0caml_script.t, string) Stdlib.result
get_script c file
parses a script from file file
in configuration c
.
val get_source : Conf.t -> B0caml_script.t -> (string, string) Stdlib.result
get_source c s
is the final source of script s
in configuration c
, determined via src
.
val compile_script :
Conf.t ->
B0caml_script.t ->
(B0_std.Fpath.t, string) Stdlib.result
compile_script c s
compiles script s
to an executable.