lib/task_manager/cli.rb in task_manager2-0.0.15 vs lib/task_manager/cli.rb in task_manager2-0.0.16
- old
+ new
@@ -15,9 +15,14 @@
method_option :id, aliases: '-i', desc: 'ID of the task', type: :numeric, required: true
def pick
TaskManager.pick(options[:id])
end
+ desc 'undo', 'Undo the current task, put it back to the waiting queue'
+ def undo
+ TaskManager.undo
+ end
+
desc 'delete', 'Delete a task from the waiting queue'
method_option :id, aliases: '-i', desc: 'ID of the task', type: :numeric, required: true
def delete
TaskManager.delete(options[:id])
end