From 77e4e8647d565218bfc72fbe569eb7eb00c4d8e6 Mon Sep 17 00:00:00 2001 From: kballou Date: Tue, 21 Jun 2016 11:35:11 -0600 Subject: Add discard command to discard current time entry Add a `discard` option for discontinue tracking on the current time entry. --- lib/toglx/escript.ex | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/toglx/escript.ex') 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 -- cgit v1.2.1