diff --git a/docs/features/runner-mode/index.html b/docs/features/runner-mode/index.html
index 1a13ea2..4aa9b3c 100644
--- a/docs/features/runner-mode/index.html
+++ b/docs/features/runner-mode/index.html
@@ -15,12 +15,7 @@ first then going to shell script. If you want the reverse order, you can
set it to hybridRev
and for isolated modes there is sh
and lua
respectively.
You can also set it to a function, which will be called everytime Hilbish needs to run interactive input. For more detail, see the API documentation
The hilbish.runner
interface is an alternative to using hilbish.runnerMode
-and also provides the shell script and Lua runner functions that Hilbish itself uses.
A runner function is expected to return a table with the following values:
exitCode
(number): Exit code of the commandinput
(string): The text input of the user. This is used by Hilbish to append extra input, in case
-more is requested.err
(string): A string that represents an error from the runner.
-This should only be set when, for example, there is a syntax error.
-It can be set to a few special values for Hilbish to throw the right
-hooks and have a better looking message.<command>: not-found
will throw a command.not-found
hook
-based on what <command>
is.<command>: not-executable
will throw a command.not-executable
hook.continue
(boolean): Whether Hilbish should prompt the user for no inputThese are the “low level” functions for the hilbish.runner
interface.
hilbish.runnerMode
input
in Hilbish’s sh interpreterinput
as Lua codeThese functions should be preferred over the previous ones.
setMode
, but works with runners managed
via the functions below.runner
argument is either a function or a table with a run callback.add
but requires passing a table and