aboutsummaryrefslogtreecommitdiff
path: root/pacman.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pacman.lua')
-rw-r--r--pacman.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/pacman.lua b/pacman.lua
index 0d8f80a..bdf9ef7 100644
--- a/pacman.lua
+++ b/pacman.lua
@@ -6,6 +6,7 @@
-- {{{ Grab environment
local tonumber = tonumber
local io = { popen = io.popen }
+local setmetatable = setmetatable
-- }}}
@@ -36,3 +37,5 @@ function worker(format)
return {updates}
end
-- }}}
+
+setmetatable(_M, { __call = function(_, ...) return worker(...) end })