2
3
zrcadlo https://github.com/sammy-ette/Hilbish synchronizováno 2025-08-10 02:52:03 +00:00

feat: add userDir module

Tento commit je obsažen v:
sammyette 2024-07-20 10:53:49 -04:00
rodič 56045ed236
revize e335ef5994
Podepsáno: sammyette
ID GPG klíče: 904FC49417B44DCD
2 změnil soubory, kde provedl 3 přidání a 2 odebrání

4
api.go
Zobrazit soubor

@ -81,8 +81,8 @@ func hilbishLoader(mlr *moonlight.Runtime) moonlight.Value {
//util.SetField(rtm, mod, "vimMode", rt.NilValue)
// hilbish.userDir table
//hshuser := userDirLoader(rtm)
//mod.Set(rt.StringValue("userDir"), rt.TableValue(hshuser))
hshuser := userDirLoader()
hshMod.SetField("userDir", moonlight.TableValue(hshuser))
// hilbish.os table
//hshos := hshosLoader(rtm)

1
lua.go
Zobrazit soubor

@ -53,6 +53,7 @@ func luaInit() {
// Add more paths that Lua can require from
_, err := l.DoString("package.path = package.path .. " + requirePaths)
if err != nil {
fmt.Fprintln(os.Stderr, err)
fmt.Fprintln(os.Stderr, "Could not add Hilbish require paths! Libraries will be missing. This shouldn't happen.")
}