mirror of https://github.com/Hilbis/Hilbish
docs: add doc for mode param of runnerMode function
parent
053914ec45
commit
3636efe7f8
1
api.go
1
api.go
|
@ -483,6 +483,7 @@ func hlinputMode(L *lua.LState) int {
|
||||||
// Accepted values for mode are hybrid (the default), hybridRev (sh first then Lua),
|
// 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
|
// sh, and lua. It also accepts a function, to which if it is passed one
|
||||||
// will call it to execute user input instead.
|
// will call it to execute user input instead.
|
||||||
|
// --- @param mode string|function
|
||||||
func hlrunnerMode(L *lua.LState) int {
|
func hlrunnerMode(L *lua.LState) int {
|
||||||
mode := L.CheckAny(1)
|
mode := L.CheckAny(1)
|
||||||
switch mode.Type() {
|
switch mode.Type() {
|
||||||
|
|
Loading…
Reference in New Issue