Sha256: 900bdccecc831db469ced9b7c6d9a021df078da4adbd6884742b28af7a80079e
Contents?: true
Size: 717 Bytes
Versions: 6
Compression:
Stored size: 717 Bytes
Contents
require "deadline/version" require "deadline/timer" require "deadline/task" module Deadline def self.setup case ARGV[0] when "add" if ARGV.size < 3 puts "Usage: deadline add TASK_NAME DEADLINE" return end Task.add(task: ARGV[1], deadline: ARGV[2]) when "remove" if ARGV.size < 2 puts "Usage: deadline remove (all|TASK_NUMBER)" return end Task.remove(ARGV[1]) when "tasks" Task.print_tasks when "track" Timer.track else print(<<-"EOS") Usage: deadline add TASK_NAME DEADLINE deadline remove (all|TASK_NUMBER) deadline tasks deadline track EOS end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
deadline-0.1.2 | lib/deadline.rb |
deadline-0.1.1 | lib/deadline.rb |
deadline-0.1.0 | lib/deadline.rb |
deadline-0.0.4 | lib/deadline.rb |
deadline-0.0.3 | lib/deadline.rb |
deadline-0.0.2 | lib/deadline.rb |