gh-pages
TorchedSammy 2024-12-24 22:59:52 +00:00
parent 1e9a8a6120
commit 7b42dd3d36
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ shell script if fennel eval has an error.</p><div class=highlight><pre tabindex=
</span></span><span class=line><span class=ln>11</span><span class=cl> <span class=kr>return</span> <span class=n>hilbish.runner</span><span class=p>.</span><span class=n>sh</span><span class=p>(</span><span class=n>input</span><span class=p>)</span>
</span></span><span class=line><span class=ln>12</span><span class=cl><span class=kr>end</span><span class=p>)</span>
</span></span></code></pre></div><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=#runner.setMode>setMode(cb)</a></td><td>This is the same as the <code>hilbish.runnerMode</code> function.</td></tr><tr><td><a href=#runner.lua>lua(cmd)</a></td><td>Evaluates <code>cmd</code> as Lua input. This is the same as using <code>dofile</code></td></tr><tr><td><a href=#runner.sh>sh(cmd)</a></td><td>Runs a command in Hilbish&rsquo;s shell script interpreter.</td></tr><tr><td><a href=#getCurrent>hilbish.runner.getCurrent()</a></td><td>Returns the current runner by name.</td></tr><tr><td><a href=#setCurrent>hilbish.runner.setCurrent(name)</a></td><td>Sets the current interactive/command line runner mode.</td></tr><tr><td><a href=#add>hilbish.runner.add(name, runner)</a></td><td>Adds a runner to the table of available runners. If runner is a table,</td></tr><tr><td><a href=#get>hilbish.runner.get(name)</a></td><td>Get a runner by name.</td></tr><tr><td><a href=#set>hilbish.runner.set(name, runner)</a></td><td>Sets a runner by name. The runner table must have the run function in it.</td></tr><tr><td><a href=#exec>hilbish.runner.exec(cmd, runnerName)</a></td><td>Executes cmd with a runner. If runnerName isn&rsquo;t passed, it uses</td></tr></tbody></table><blockquote></blockquote><p>Evaluates <code>cmd</code> as Lua input. This is the same as using <code>dofile</code><br>or <code>load</code>, but is appropriated for the runner interface.</p><h5 id=parameters class=heading>Parameters
<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=#runner.setMode>setMode(cb)</a></td><td>This is the same as the <code>hilbish.runnerMode</code> function.</td></tr><tr><td><a href=#runner.lua>lua(cmd)</a></td><td>Evaluates <code>cmd</code> as Lua input. This is the same as using <code>dofile</code></td></tr><tr><td><a href=#runner.sh>sh(cmd)</a></td><td>Runs a command in Hilbish&rsquo;s shell script interpreter.</td></tr><tr><td><a href=#getCurrent>getCurrent()</a></td><td>Returns the current runner by name.</td></tr><tr><td><a href=#setCurrent>setCurrent(name)</a></td><td>Sets the current interactive/command line runner mode.</td></tr><tr><td><a href=#add>add(name, runner)</a></td><td>Adds a runner to the table of available runners. If runner is a table,</td></tr><tr><td><a href=#get>get(name)</a></td><td>Get a runner by name.</td></tr><tr><td><a href=#set>set(name, runner)</a></td><td>Sets a runner by name. The runner table must have the run function in it.</td></tr><tr><td><a href=#exec>exec(cmd, runnerName)</a></td><td>Executes cmd with a runner. If runnerName isn&rsquo;t passed, it uses</td></tr><tr><td>d)</td><td></td></tr><tr><td><a href=#runner.lua class=heading-link></td><td></td></tr><tr><td><i class="fas fa-paperclip"></i></td><td></td></tr><tr><td></a></td><td></td></tr></tbody></table></h4><p>Evaluates <code>cmd</code> as Lua input. This is the same as using <code>dofile</code><br>or <code>load</code>, but is appropriated for the runner interface.</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>cmd</code></strong></p></div><hr><div id=runner.sh><h4 class=heading>hilbish.runner.sh(cmd)
<a href=#runner.sh class=heading-link><i class="fas fa-paperclip"></i></a></h4><p>Runs a command in Hilbish&rsquo;s shell script interpreter.<br>This is the equivalent of using <code>source</code>.</p><h5 id=parameters-1 class=heading>Parameters
<a href=#parameters-1 class=heading-link><i class="fas fa-paperclip"></i></a></h5><p><code>string</code> <strong><code>cmd</code></strong></p></div><hr><div id=getCurrent><h4 class=heading>hilbish.runner.getCurrent()