class Markdo::SummaryCommand

Public Instance Methods

run() click to toggle source
# File lib/markdo/commands/summary_command.rb, line 5
def run
  print_count('Overdue', task_collection.overdue)
  print_count('Starred', task_collection.with_tag('star'))
  print_count('Today', task_collection.due_today)
  print_count('Tomorrow', task_collection.due_tomorrow)
  print_count('Soon', task_collection.due_soon)

  print_count('Inbox', inbox_task_collection.all)
end

Private Instance Methods

print_count(name, tasks) click to toggle source