aboutsummaryrefslogtreecommitdiff
path: root/lib/toglx/escript.ex
diff options
context:
space:
mode:
authorkballou <kballou@devnulllabs.io>2016-06-21 11:35:11 -0600
committerkballou <kballou@devnulllabs.io>2016-06-21 11:35:11 -0600
commit77e4e8647d565218bfc72fbe569eb7eb00c4d8e6 (patch)
tree59e270b417e88374aad365e70f2992af410fb662 /lib/toglx/escript.ex
parent4ca1b6dbdd1c58155faddde18908e6b09e80c757 (diff)
downloadtoglx-77e4e8647d565218bfc72fbe569eb7eb00c4d8e6.tar.gz
toglx-77e4e8647d565218bfc72fbe569eb7eb00c4d8e6.tar.xz
Add discard command to discard current time entry
Add a `discard` option for discontinue tracking on the current time entry.
Diffstat (limited to 'lib/toglx/escript.ex')
-rw-r--r--lib/toglx/escript.ex5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/toglx/escript.ex b/lib/toglx/escript.ex
index 5ccc40c..a50c5b1 100644
--- a/lib/toglx/escript.ex
+++ b/lib/toglx/escript.ex
@@ -15,4 +15,9 @@ defmodule Toglx.Escript do
|> IO.inspect
end
+ def run(%{cmd: "discard"}) do
+ Toglx.submit_discard_event
+ |> IO.inspect
+ end
+
end