Class: Toodledo::CommandLine::AddCommand
- Inherits:
-
CmdParse::Command
- Object
- CmdParse::Command
- Toodledo::CommandLine::AddCommand
- Defined in:
- lib/toodledo/command_line/add_command.rb
Overview
Adds commands
Instance Method Summary collapse
- #execute(args) ⇒ Object
-
#initialize(client) ⇒ AddCommand
constructor
A new instance of AddCommand.
Constructor Details
#initialize(client) ⇒ AddCommand
Returns a new instance of AddCommand.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/toodledo/command_line/add_command.rb', line 9 def initialize(client) super('add', true) self.short_desc = 'Adds an object' self.add_command(AddTaskCommand.new(client), true) #self.add_command(AddFolderCommand.new(client)) #self.add_command(AddGoalCommand.new(client)) #self.add_command(AddContextCommand.new(client)) end |
Instance Method Details
#execute(args) ⇒ Object
20 21 22 |
# File 'lib/toodledo/command_line/add_command.rb', line 20 def execute(args) puts "hello world!" end |