package b0
Software construction and deployment kit
Install
Dune Dependency
Authors
Maintainers
Sources
b0-0.0.1.tbz
sha256=dba2fc571f39f3b8e87ee55c77bdec7ec6a5ddc7d99b8b20aeda848af546be04
md5=51ee1d66acc4d7f87bdceac1341b7711
doc/b0.b00/B00/Env/index.html
Module B00.Env
Build environment.
Build environments control tool lookup and the environment of tool spawns.
Tool lookup
type tool_lookup = B00_std.Cmd.tool -> (B00_std.Fpath.t, string) result
The type for tool lookups. Given a command line tool specification returns a file path to the tool executable or an error message mentioning the tool if it cannot be found.
val env_tool_lookup :
?sep:string ->
?var:string ->
B00_std.Os.Env.t ->
tool_lookup
env_tool_lookup ~sep ~var env
is a tool lookup that gets the value of the var
variable in env
treats it as a sep
separated search path and uses the result to lookup with B00_std.Os.Cmd.must_find
. var
defaults to PATH
and sep
to B00_std.Fpath.search_path_sep
.
Environment
val v :
?lookup:tool_lookup ->
?forced_env:B00_std.Os.Env.t ->
B00_std.Os.Env.t ->
t
v ~lookup ~forced_env env
is a build environment with:
lookup
used to find build tools. Defaults toenv_tool_lookup env
.forced_env
is environment forced on any tool despite what it declared to access, defaults toOs.Env.empty
env
the environment read by the tools' declared environment variables.
val env : t -> B00_std.Os.Env.t
env e
is e
's available spawn environment.
val forced_env : t -> B00_std.Os.Env.t
forced_env e
is e
's forced spawn environment.
val tool : t -> B00_std.Cmd.tool -> (B00_std.Fpath.t, string) result
tool e t
looks up tool t
in e
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page