diff --git a/versions/document-lua/docs/api/hilbish/hilbish.runner/index.html b/versions/document-lua/docs/api/hilbish/hilbish.runner/index.html index 5a9ccf35..93479bf5 100644 --- a/versions/document-lua/docs/api/hilbish/hilbish.runner/index.html +++ b/versions/document-lua/docs/api/hilbish/hilbish.runner/index.html @@ -28,24 +28,27 @@ shell script if fennel eval has an error.
11 return hilbish.runner.sh(input)
12end)
| setMode(cb) | This is the same as the hilbish.runnerMode function. |
| lua(cmd) | Evaluates cmd as Lua input. This is the same as using dofile |
| sh(cmd) | Runs a command in Hilbish’s shell script interpreter. |
| getCurrent() | Returns the current runner by name. |
| setCurrent(name) | Sets the current interactive/command line runner mode. |
| add(name, runner) | Adds a runner to the table of available runners. If runner is a table, |
| get(name) | Get a runner by name. |
| set(name, runner) | Sets a runner by name. The runner table must have the run function in it. |
| exec(cmd, runnerName) | Executes cmd with a runner. If runnerName isn’t passed, it uses |
| d) | |
Evaluates cmd as Lua input. This is the same as using dofile
or load, but is appropriated for the runner interface.
string cmd
Runs a command in Hilbish’s shell script interpreter.
This is the equivalent of using source.
string cmd
Returns the current runner by name.
This function has no parameters.
Sets the current interactive/command line runner mode.
name string
| setMode(cb) | This is the same as the hilbish.runnerMode function. |
| lua(cmd) | Evaluates cmd as Lua input. This is the same as using dofile |
| sh(cmd) | Runs a command in Hilbish’s shell script interpreter. |
| exec(cmd, runnerName) | Executes cmd with a runner. If runnerName isn’t passed, it uses |
| set(name, runner) | Sets a runner by name. The runner table must have the run function in it. |
| get(name) | Get a runner by name. |
| add(name, runner) | Adds a runner to the table of available runners. If runner is a table, |
| setCurrent(name) | Sets the current interactive/command line runner mode. |
| getCurrent() | Returns the current runner by name. |
This is the same as the hilbish.runnerMode function.
It takes a callback, which will be used to execute all interactive input.
In normal cases, neither callbacks should be overrided by the user,
as the higher level functions listed below this will handle it.
function cb
Evaluates cmd as Lua input. This is the same as using dofile
or load, but is appropriated for the runner interface.
string cmd
Runs a command in Hilbish’s shell script interpreter.
This is the equivalent of using source.
string cmd
Returns the current runner by name.
This function has no parameters.
Sets the current interactive/command line runner mode.
name string
Adds a runner to the table of available runners. If runner is a table, -it must have the run function in it.
name string
+it must have the run function in it.
name string
runner function
Sets a runner by name. The runner table must have the run function in it.
Get a runner by name.
name string
Sets a runner by name. The runner table must have the run function in it.
name string
runner table