lib/task_manager.rb in task_manager2-0.0.13 vs lib/task_manager.rb in task_manager2-0.0.14

- old
+ new

@@ -28,9 +28,17 @@ print_task(task) rescue Exception => e print e.message end + def self.delete(id) + task = NewTaskFile.new.delete(id) + print('Deleted task:'.colorize(:light_cyan)) + print_task(task) + rescue Exception => e + print e.message + end + def self.current task = CurrentTaskFile.new.current print('Current task:'.colorize(:light_cyan)) print_task(task) rescue Exception => e