You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
3.9 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Buck (infer.Integration.Buck)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> <a href="../../index.html">infer</a> &#x00BB; <a href="../index.html">Integration</a> &#x00BB; Buck</nav><h1>Module <code>Integration.Buck</code></h1></header><div class="spec module" id="module-Target"><a href="#module-Target" class="anchor"></a><code><span class="keyword">module</span> <a href="Target/index.html">Target</a> : <span class="keyword">sig</span> ... <span class="keyword">end</span></code></div><dl><dt class="spec value" id="val-wrap_buck_call"><a href="#val-wrap_buck_call" class="anchor"></a><code><span class="keyword">val</span> wrap_buck_call : <span>?&#8288;extend_env:<span><span>(string * string)</span> list</span></span> <span>&#45;&gt;</span> <span>label:string</span> <span>&#45;&gt;</span> <span>string list</span> <span>&#45;&gt;</span> <span>string list</span></code></dt><dd><p>Wrap 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 <code>SIGQUIT</code>.</p><p>In a call <code>wrap_buck_call ~extend_env ~label cmd</code>, <code>extend_env</code> is a list of pairs <code>(variable, value)</code> that will extend the environment of the subprocess; <code>label</code> is appended to <code>buck_</code> to make the prefix of the temporary file storing the standard output of the command, for quick identification; <code>cmd</code> is a list of strings making up the shell command to execute; the return value is the standard output of the command split on newlines.</p></dd></dl><dl><dt class="spec value" id="val-config"><a href="#val-config" class="anchor"></a><code><span class="keyword">val</span> config : <a href="../../IBase/BuckMode/index.html#type-t">IBase.BuckMode.t</a> <span>&#45;&gt;</span> <span>string list</span></code></dt><dd><p>return list of string parameters of the form <code>&quot;--config&quot; :: param_a :: &quot;--config&quot; :: param_b :: ...</code> describing the buck config flags for the given Buck mode.</p></dd></dl><dl><dt class="spec value" id="val-parse_command_and_targets"><a href="#val-parse_command_and_targets" class="anchor"></a><code><span class="keyword">val</span> parse_command_and_targets : <a href="../../IBase/BuckMode/index.html#type-t">IBase.BuckMode.t</a> <span>&#45;&gt;</span> <span>string list</span> <span>&#45;&gt;</span> string * <span>string list</span> * <span>string list</span></code></dt><dd><p>parses given buck command, using the buck configuration returned by <code>config</code> above and returns a triple <code>(buck_command, non_target_params, target_params)</code></p></dd></dl><dl><dt class="spec value" id="val-store_args_in_file"><a href="#val-store_args_in_file" class="anchor"></a><code><span class="keyword">val</span> store_args_in_file : <span>identifier:string</span> <span>&#45;&gt;</span> <span>string list</span> <span>&#45;&gt;</span> <span>string list</span></code></dt><dd><p>Given a list of arguments, stores them in a file if needed and returns the new command line ; <code>identifier</code> is the temporary filename prefix</p></dd></dl><dl><dt class="spec value" id="val-filter_compatible"><a href="#val-filter_compatible" class="anchor"></a><code><span class="keyword">val</span> filter_compatible : <span>[&gt; `Targets ]</span> <span>&#45;&gt;</span> <span>string list</span> <span>&#45;&gt;</span> <span>string list</span></code></dt><dd><p>keep only the options compatible with the given Buck subcommand</p></dd></dl></div></body></html>