From 1e9a8a61200cdf882e2d1a4b1aa7781b6d1d52b1 Mon Sep 17 00:00:00 2001 From: TorchedSammy Date: Tue, 24 Dec 2024 22:53:55 +0000 Subject: [PATCH] deploy: 208bd594cb3325c6606c839db40f691a46ebd16a --- .../api/hilbish/hilbish.runner/index.html | 34 +++++++++---------- 1 file changed, 16 insertions(+), 18 deletions(-) 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 603c309..95b4760 100644 --- a/versions/document-lua/docs/api/hilbish/hilbish.runner/index.html +++ b/versions/document-lua/docs/api/hilbish/hilbish.runner/index.html @@ -28,26 +28,24 @@ shell script if fennel eval has an error.

11	return hilbish.runner.sh(input)
 12end)
 

Functions -

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.
Returns the current runner by name.
Sets the current interactive/command line runner mode.
Adds a runner to the table of available runners. If runner is a table,
Get a runner by name.
Sets a runner by name. The runner table must have the run function in it.
Executes cmd with a runner. If runnerName isn’t passed, it uses

Parameters -

function cb


hilbish.runner.lua(cmd) -

Evaluates cmd as Lua input. This is the same as using dofile
or load, but is appropriated for the runner interface.

Parameters -

string cmd


hilbish.runner.sh(cmd) -

Runs a command in Hilbish’s shell script interpreter.
This is the equivalent of using source.

Parameters -

string cmd


hilbish.runner.getCurrent() -

Returns the current runner by name.

Parameters -

This function has no parameters.


hilbish.runner.setCurrent(name) -

Sets the current interactive/command line runner mode.

Parameters -

name string


hilbish.runner.add(name, runner) +

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.
hilbish.runner.getCurrent()Returns the current runner by name.
hilbish.runner.setCurrent(name)Sets the current interactive/command line runner mode.
hilbish.runner.add(name, runner)Adds a runner to the table of available runners. If runner is a table,
hilbish.runner.get(name)Get a runner by name.
hilbish.runner.set(name, runner)Sets a runner by name. The runner table must have the run function in it.
hilbish.runner.exec(cmd, runnerName)Executes cmd with a runner. If runnerName isn’t passed, it uses

Evaluates cmd as Lua input. This is the same as using dofile
or load, but is appropriated for the runner interface.

Parameters +

string cmd


hilbish.runner.sh(cmd) +

Runs a command in Hilbish’s shell script interpreter.
This is the equivalent of using source.

Parameters +

string cmd


hilbish.runner.getCurrent() +

Returns the current runner by name.

Parameters +

This function has no parameters.


hilbish.runner.setCurrent(name) +

Sets the current interactive/command line runner mode.

Parameters +

name string


hilbish.runner.add(name, runner)

Adds a runner to the table of available runners. If runner is a table, -it must have the run function in it.

Parameters -

name string +it must have the run function in it.

Parameters +

name string runner function


hilbish.runner.get(name) -

Get a runner by name.

Parameters -

name string


hilbish.runner.set(name, runner) -

Sets a runner by name. The runner table must have the run function in it.

Parameters -

name string +

Get a runner by name.

Parameters +

name string


hilbish.runner.set(name, runner) +

Sets a runner by name. The runner table must have the run function in it.

Parameters +

name string runner table


hilbish.runner.exec(cmd, runnerName)

Executes cmd with a runner. If runnerName isn’t passed, it uses -the user’s current runner.

Parameters -

cmd string +the user’s current runner.

Parameters +

cmd string runnerName string?

\ No newline at end of file