diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/hcl/commands.rb | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/lib/hcl/commands.rb b/lib/hcl/commands.rb index c753fbf..9bad615 100644 --- a/lib/hcl/commands.rb +++ b/lib/hcl/commands.rb @@ -45,6 +45,9 @@ module HCl      def cancel        entry = DayEntry.with_timer(http) || DayEntry.last(http)        if entry +        confirmed = /^y/.match(ask("#{entry}\nDelete this entry? (y/n): ").downcase) +        return unless confirmed +          if entry.cancel http            "Deleted entry #{entry}."          else | 
