|
57 | 57 | |<a href="#runner.setMode">setMode(cb)</a>|This is the same as the `hilbish.runnerMode` function.|
|
58 | 58 | |<a href="#runner.lua">lua(cmd)</a>|Evaluates `cmd` as Lua input. This is the same as using `dofile`|
|
59 | 59 | |<a href="#runner.sh">sh(cmd)</a>|Runs a command in Hilbish's shell script interpreter.|
|
60 |
| -|<a href="#getCurrent">getCurrent()</a>|Returns the current runner by name.| |
61 |
| -|<a href="#setCurrent">setCurrent(name)</a>|Sets the current interactive/command line runner mode.| |
62 |
| -|<a href="#add">add(name, runner)</a>|Adds a runner to the table of available runners. If runner is a table,| |
63 |
| -|<a href="#get">get(name)</a>|Get a runner by name.| |
64 |
| -|<a href="#set">set(name, runner)</a>|Sets a runner by name. The runner table must have the run function in it.| |
65 | 60 | |<a href="#exec">exec(cmd, runnerName)</a>|Executes cmd with a runner. If runnerName isn't passed, it uses|
|
66 |
| -d) |
| 61 | +|<a href="#set">set(name, runner)</a>|Sets a runner by name. The runner table must have the run function in it.| |
| 62 | +|<a href="#get">get(name)</a>|Get a runner by name.| |
| 63 | +|<a href="#add">add(name, runner)</a>|Adds a runner to the table of available runners. If runner is a table,| |
| 64 | +|<a href="#setCurrent">setCurrent(name)</a>|Sets the current interactive/command line runner mode.| |
| 65 | +|<a href="#getCurrent">getCurrent()</a>|Returns the current runner by name.| |
| 66 | + |
| 67 | +<hr> |
| 68 | +<div id='runner.setMode'> |
| 69 | +<h4 class='heading'> |
| 70 | +hilbish.runner.setMode(cb) |
| 71 | +<a href="#runner.setMode" class='heading-link'> |
| 72 | + <i class="fas fa-paperclip"></i> |
| 73 | +</a> |
| 74 | +</h4> |
| 75 | + |
| 76 | +This is the same as the `hilbish.runnerMode` function. |
| 77 | +It takes a callback, which will be used to execute all interactive input. |
| 78 | +In normal cases, neither callbacks should be overrided by the user, |
| 79 | +as the higher level functions listed below this will handle it. |
| 80 | + |
| 81 | +#### Parameters |
| 82 | +`function` **`cb`** |
| 83 | + |
| 84 | + |
| 85 | +</div> |
| 86 | + |
| 87 | +<hr> |
| 88 | +<div id='runner.lua'> |
| 89 | +<h4 class='heading'> |
| 90 | +hilbish.runner.lua(cmd) |
67 | 91 | <a href="#runner.lua" class='heading-link'>
|
68 | 92 | <i class="fas fa-paperclip"></i>
|
69 | 93 | </a>
|
|
0 commit comments