2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-05-11 14:53:22 +00:00
Hilbish/lua.go
2021-03-21 17:20:19 -04:00

21 lines
253 B
Go

package main
import (
"github.com/yuin/gopher-lua"
)
func hshprompt(L *lua.LState) int {
prompt = L.ToString(1)
return 0
}
func hshalias(L *lua.LState) int {
alias := L.ToString(1)
source := L.ToString(2)
aliases[alias] = source
return 1
}