gh-pages
TorchedSammy 2023-12-26 02:48:44 +00:00
parent 412d47289e
commit c1c84ca494
2 changed files with 15 additions and 14 deletions

View File

@ -6,7 +6,7 @@
interactive usage or with the functions defined below for use in external runners.</p><h3 id=functions class=heading>Functions interactive usage or with the functions defined below for use in external runners.</p><h3 id=functions class=heading>Functions
<a href=#functions class=heading-link><i class="fas fa-paperclip"></i></a></h3><table><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><a href=#jobs.add>add(cmdstr, args, execPath)</a></td><td>Creates a new job. This function does not run the job. This function is intended to be</td></tr><tr><td><a href=#jobs.all>all() -> table[@Job]</a></td><td>Returns a table of all job objects.</td></tr><tr><td><a href=#jobs.disown>disown(id)</a></td><td>Disowns a job. This simply deletes it from the list of jobs without stopping it.</td></tr><tr><td><a href=#jobs.get>get(id) -> @Job</a></td><td>Get a job object via its ID.</td></tr><tr><td><a href=#jobs.last>last() -> @Job</a></td><td>Returns the last added job to the table.</td></tr></tbody></table><hr><div id=jobs.add><h4 class=heading>hilbish.jobs.add(cmdstr, args, execPath) <a href=#functions class=heading-link><i class="fas fa-paperclip"></i></a></h3><table><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><a href=#jobs.add>add(cmdstr, args, execPath)</a></td><td>Creates a new job. This function does not run the job. This function is intended to be</td></tr><tr><td><a href=#jobs.all>all() -> table[@Job]</a></td><td>Returns a table of all job objects.</td></tr><tr><td><a href=#jobs.disown>disown(id)</a></td><td>Disowns a job. This simply deletes it from the list of jobs without stopping it.</td></tr><tr><td><a href=#jobs.get>get(id) -> @Job</a></td><td>Get a job object via its ID.</td></tr><tr><td><a href=#jobs.last>last() -> @Job</a></td><td>Returns the last added job to the table.</td></tr></tbody></table><hr><div id=jobs.add><h4 class=heading>hilbish.jobs.add(cmdstr, args, execPath)
<a href=#jobs.add class=heading-link><i class="fas fa-paperclip"></i></a></h4><p>Creates a new job. This function does not run the job. This function is intended to be<br>used by runners, but can also be used to create jobs via Lua. Commanders cannot be ran as jobs.</p><h5 id=parameters class=heading>Parameters <a href=#jobs.add class=heading-link><i class="fas fa-paperclip"></i></a></h4><p>Creates a new job. This function does not run the job. This function is intended to be<br>used by runners, but can also be used to create jobs via Lua. Commanders cannot be ran as jobs.</p><h5 id=parameters class=heading>Parameters
<a href=#parameters class=heading-link><i class="fas fa-paperclip"></i></a></h5><p><code>string</code> <strong><code>cmdstr</code></strong><br>String that a user would write for the job</p><p><code>table</code> <strong><code>args</code></strong><br>Arguments for the commands. Has to include the name of the command.</p><p><code>string</code> <strong><code>execPath</code></strong><br>Binary to use to run the command. Does not</p><h5 id=example class=heading>Example <a href=#parameters class=heading-link><i class="fas fa-paperclip"></i></a></h5><p><code>string</code> <strong><code>cmdstr</code></strong><br>String that a user would write for the job</p><p><code>table</code> <strong><code>args</code></strong><br>Arguments for the commands. Has to include the name of the command.</p><p><code>string</code> <strong><code>execPath</code></strong><br>Binary to use to run the command. Needs to be an absolute path.</p><h5 id=example class=heading>Example
<a href=#example class=heading-link><i class="fas fa-paperclip"></i></a></h5><div class=highlight><pre tabindex=0 class=chroma><code class=language-lua data-lang=lua><span class=line><span class=ln>1</span><span class=cl><span class=n>hilbish.jobs</span><span class=p>.</span><span class=n>add</span><span class=p>(</span><span class=s1>&#39;go build&#39;</span><span class=p>,</span> <span class=p>{</span><span class=s1>&#39;go&#39;</span><span class=p>,</span> <span class=s1>&#39;build&#39;</span><span class=p>},</span> <span class=s1>&#39;/usr/bin/go&#39;</span><span class=p>)</span> <a href=#example class=heading-link><i class="fas fa-paperclip"></i></a></h5><div class=highlight><pre tabindex=0 class=chroma><code class=language-lua data-lang=lua><span class=line><span class=ln>1</span><span class=cl><span class=n>hilbish.jobs</span><span class=p>.</span><span class=n>add</span><span class=p>(</span><span class=s1>&#39;go build&#39;</span><span class=p>,</span> <span class=p>{</span><span class=s1>&#39;go&#39;</span><span class=p>,</span> <span class=s1>&#39;build&#39;</span><span class=p>},</span> <span class=s1>&#39;/usr/bin/go&#39;</span><span class=p>)</span>
</span></span></code></pre></div></div><hr><div id=jobs.all><h4 class=heading>hilbish.jobs.all() -> table[<a href=/Hilbish/docs/api/hilbish/hilbish.jobs/#job style=text-decoration:none id=lol>Job</a>] </span></span></code></pre></div></div><hr><div id=jobs.all><h4 class=heading>hilbish.jobs.all() -> table[<a href=/Hilbish/docs/api/hilbish/hilbish.jobs/#job style=text-decoration:none id=lol>Job</a>]
<a href=#jobs.all class=heading-link><i class="fas fa-paperclip"></i></a></h4><p>Returns a table of all job objects.</p><h5 id=parameters-1 class=heading>Parameters <a href=#jobs.all class=heading-link><i class="fas fa-paperclip"></i></a></h4><p>Returns a table of all job objects.</p><h5 id=parameters-1 class=heading>Parameters

File diff suppressed because one or more lines are too long