summaryrefslogtreecommitdiff
path: root/toreminder.lua
diff options
context:
space:
mode:
Diffstat (limited to 'toreminder.lua')
-rwxr-xr-xtoreminder.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/toreminder.lua b/toreminder.lua
new file mode 100755
index 0000000..e0216f4
--- /dev/null
+++ b/toreminder.lua
@@ -0,0 +1,20 @@
+#!/usr/bin/env lua
+local cal = require "cal"
+local rem = require "rem"
+local common = require "common"
+
+common.set_verbosity (2)
+
+local main = function (argv)
+ local ok, parsed = cal.parse_stdin ()
+ if not ok then
+ return -1
+ end
+
+ local ok = rem.output_calendar (parsed)
+
+ return ok and 0 or -1
+end
+
+os.exit (main ())
+