diff options
| author | Zack Hobson | 2013-11-19 12:31:29 -0800 | 
|---|---|---|
| committer | Zack Hobson | 2013-11-19 12:31:37 -0800 | 
| commit | ea0f20040fb2cd4bf519f898b515e5d5a700b461 (patch) | |
| tree | 79d457ea458456d8192ab45e3c188852a4d3ecb8 /lib | |
| parent | 14c0ef02dded48dc264d979aaa97233b498575ee (diff) | |
| download | hcl-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.rb | 5 | 
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 | 
