Module Integration__Buck
module Target : sig ... endval wrap_buck_call : ?extend_env:(string * string) list -> label:string -> string list -> string listWrap a call to buck while (i) logging standard error to our standard error in real time; (ii) redirecting standard out to a file, the contents of which are returned; (iii) protect the child process from
SIGQUIT.In a call
wrap_buck_call ~extend_env ~label cmd,extend_envis a list of pairs(variable, value)that will extend the environment of the subprocess;labelis appended tobuck_to make the prefix of the temporary file storing the standard output of the command, for quick identification;cmdis a list of strings making up the shell command to execute; the return value is the standard output of the command split on newlines.
val config : IBase.BuckMode.t -> string listreturn list of string parameters of the form
"--config" :: param_a :: "--config" :: param_b :: ...describing the buck config flags for the given Buck mode.
val parse_command_and_targets : IBase.BuckMode.t -> string list -> string * string list * string listparses given buck command, using the buck configuration returned by
configabove and returns a triple(buck_command, non_target_params, target_params)