summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZack Hobson2013-11-19 12:31:29 -0800
committerZack Hobson2013-11-19 12:31:37 -0800
commitea0f20040fb2cd4bf519f898b515e5d5a700b461 (patch)
tree79d457ea458456d8192ab45e3c188852a4d3ecb8 /lib
parent14c0ef02dded48dc264d979aaa97233b498575ee (diff)
downloadhcl-ea0f20040fb2cd4bf519f898b515e5d5a700b461.tar.bz2
log: log notes/time without leaving a timer running, closes #300.4.3
Diffstat (limited to 'lib')
-rw-r--r--lib/hcl/commands.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/hcl/commands.rb b/lib/hcl/commands.rb
index eb83dcd..250ec0e 100644
--- a/lib/hcl/commands.rb
+++ b/lib/hcl/commands.rb
@@ -79,6 +79,11 @@ module HCl
puts "Started timer for #{timer} (at #{current_time})"
end
+ def log *args
+ start *args
+ stop
+ end
+
def stop *args
entry = DayEntry.with_timer || DayEntry.with_timer(DateTime.yesterday)
if entry