lib/task_manager/cli.rb in task_manager2-0.0.13 vs lib/task_manager/cli.rb in task_manager2-0.0.14
- old
+ new
@@ -15,9 +15,15 @@
method_option :id, aliases: '-i', desc: 'ID of the task', type: :numeric, required: true
def pick
TaskManager.pick(options[:id])
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
+
desc 'current', 'Current task'
def current
TaskManager.current
end