Environment variables
val tmp_vars : env_vars
tmp_vars
is ["TMPDIR"; "TEMP"; "TMP"]
.
Response files
val response_file_of : (B00_std.Cmd.t -> string) -> (B00_std.Fpath.t -> B00_std.Cmd.t) -> response_file
response_file_of to_file cli
is a response file specification that uses to_file cmd
to convert the command line cmd
to a response file content and cli f
a command line fragment to be given to the tool so that it treats file f
as a response file.
val args0 : response_file
args0
is response file support for tools that reads null byte (0x00
) terminated arguments response files via an -args0
FILE
command line synopsis.
Tools
val v : ?response_file:response_file -> ?unstamped_vars:env_vars -> ?vars:env_vars -> B00_std.Cmd.tool -> t
v ~response_file ~unstamped_vars ~vars cmd
is a tool specified by cmd
. vars
are the stamped variables accessed by the tool (defaults to []
). unstamped_vars
are the unstamped variables accessed by the tool (defaults to tmp_vars
). response_file
defines the reponse file support for the tool (if any).
val by_name : ?response_file:response_file -> ?unstamped_vars:env_vars -> ?vars:env_vars -> string -> t
by_name
is like v
but reference the tool directly via a name.
- raises Invalid_argument
if
B00_std
.Fpath.is_segname
isfalse
.
val name : t -> B00_std.Cmd.tool
name t
is t
's tool name. If this is a relative file path with a single segment the tool is meant to be searched via an external mecanism.
unstamped_vars t
are the unstamped environment variables accessed by t
.
val response_file : t -> response_file option
response_file t
is t
's response file specification (if any).
val read_env : t -> B00_std.Os.Env.t -> B00_std.Os.Env.t * B00_std.Os.Env.t
read_env t env
is (all, stamped) with all
the environment with the variables of env
that are in vars t
and unstamped_vars t
and stamped
those of vars t
only.