From ea0f20040fb2cd4bf519f898b515e5d5a700b461 Mon Sep 17 00:00:00 2001 From: Zack Hobson Date: Tue, 19 Nov 2013 12:31:29 -0800 Subject: log: log notes/time without leaving a timer running, closes #30 --- lib/hcl/commands.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3