2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-04 20:53:24 +00:00
Hilbish/docs/nature/hilbish.md
2025-04-02 21:30:16 -04:00

1.3 KiB

title description layout menu
Module hilbish No description. doc
docs
parent
Nature

hilbish.runner(mode)

NOTE: This function is deprecated and will be removed in 3.0 Use hilbish.runner.setCurrent instead. This is the same as the hilbish.runnerMode function. It takes a callback, which will be used to execute all interactive input. Or a string which names the runner mode to use.

Parameters

mode string|function


hilbish.runnerMode(mode)

NOTE: This function is deprecated and will be removed in 3.0 Use hilbish.runner.setCurrent instead. Sets the execution/runner mode for interactive Hilbish. This determines whether Hilbish wll try to run input as Lua and/or sh or only do one of either. Accepted values for mode are hybrid (the default), hybridRev (sh first then Lua), sh, and lua. It also accepts a function, to which if it is passed one will call it to execute user input instead. Read about runner mode for more information.

Parameters

mode string|function