Class: Toodledo::CommandLine::DeleteCommand

Inherits:
CmdParse::Command
  • Object
show all
Defined in:
lib/toodledo/command_line/delete_command.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ DeleteCommand

Returns a new instance of DeleteCommand.



6
7
8
9
10
11
12
13
14
15
# File 'lib/toodledo/command_line/delete_command.rb', line 6

def initialize(client)
  super('delete', true)
  self.short_desc = "Deletes a context"
  
  self.add_command(DeleteContextCommand.new(client))
  self.add_command(DeleteGoalCommand.new(client))
  self.add_command(DeleteFolderCommand.new(client))
  
  self.add_command(DeleteTaskCommand.new(client), true)
end