commit 913050835b2ce4776db2ca4b27e5b9f4fb9f1cac
parent 268ce1fe793e20af6b3142e65999ff396e5c7ff3
Author: Daniel Barlow <dan@telent.net>
Date: Sun, 20 Feb 2022 12:25:59 +0000
use destructuring in module requires
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/just/just.fnl b/just/just.fnl
@@ -1,10 +1,8 @@
(local lgi (require :lgi))
(local inspect (require :inspect))
-(local Gtk lgi.Gtk)
-(local Gdk lgi.Gdk)
-(local WebKit2 lgi.WebKit2)
-(local cairo lgi.cairo)
+(local { : Gtk : Gdk : WebKit2 : cairo } lgi)
+
(local cache-dir (.. (os.getenv "HOME") "/.cache/just"))