From 12910ba724bc7f0569704a1d6e51c18304daa276 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Thu, 25 Nov 2021 22:24:35 -0500 Subject: [PATCH] fix: add docs for hilbish.xdg --- hilbish.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hilbish.go b/hilbish.go index fed1d17..471c6bc 100644 --- a/hilbish.go +++ b/hilbish.go @@ -41,10 +41,11 @@ func HilbishLoader(L *lua.LState) int { util.SetField(L, mod, "login", lua.LBool(interactive), "Whether this is a login shell") xdg := L.NewTable() - L.SetField(xdg, "config", lua.LString(confDir)) - L.SetField(xdg, "data", lua.LString(getenv("XDG_DATA_HOME", homedir + "/.local/share"))) + util.SetField(L, xdg, "config", lua.LString(confDir), "XDG config directory") + util.SetField(L, xdg, "data", lua.LString(getenv("XDG_DATA_HOME", homedir + "/.local/share")), "XDG data directory") L.SetField(mod, "xdg", xdg) + util.Document(L, xdg, "Variables for the XDG base directory spec.") util.Document(L, mod, "A miscellaneous sort of \"core\" API for things that relate to the shell itself and others.") L.Push(mod)