aboutsummaryrefslogtreecommitdiff
path: root/org.lua
diff options
context:
space:
mode:
Diffstat (limited to 'org.lua')
-rw-r--r--org.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.lua b/org.lua
index 5632179..a4c1754 100644
--- a/org.lua
+++ b/org.lua
@@ -6,6 +6,7 @@
-- {{{ Grab environment
local io = { open = io.open }
+local setmetatable = setmetatable
local string = { find = string.find }
local os = {
time = os.time,
@@ -68,3 +69,5 @@ function worker(format, files)
return {count.past, count.today, count.soon, count.future}
end
-- }}}
+
+setmetatable(_M, { __call = function(_, ...) return worker(...) end })