summaryrefslogtreecommitdiffstats
path: root/lib/e.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/e.lua')
-rw-r--r--lib/e.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/e.lua b/lib/e.lua
new file mode 100644
index 0000000..738a519
--- /dev/null
+++ b/lib/e.lua
@@ -0,0 +1,18 @@
+module(..., package.seeall)
+
+function ebegin(msg)
+ io.write(" * "..msg..": ")
+end
+
+
+function eend(status, msg)
+ local msg
+ if status then
+ msg = "ok"
+ else
+ msg = "failed"
+ end
+ io.write(msg.."\n")
+ return status
+end
+