Class: TooDoo::Commands::Simple

Inherits:
Base
  • Object
show all
Defined in:
lib/toodoo/commands/simple.rb

Overview

list your tasks usage: td list

Direct Known Subclasses

History, List

Instance Attribute Summary

Attributes inherited from Base

#args, #store

Instance Method Summary collapse

Methods inherited from Base

#description, #initialize

Constructor Details

This class inherits a constructor from TooDoo::Commands::Base

Instance Method Details

#perform!Object



12
13
14
15
16
# File 'lib/toodoo/commands/simple.rb', line 12

def perform!
  tasks = find_tasks
  @message = build_message(tasks)
  puts @message
end

#run!Object



8
9
10
# File 'lib/toodoo/commands/simple.rb', line 8

def run!
  perform!
end