Class: Toodledo::CommandLine::SetupCommand

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/toodledo/command_line/setup_command.rb

Instance Method Summary collapse

Methods inherited from BaseCommand

#client

Constructor Details

#initialize(client) ⇒ SetupCommand

Returns a new instance of SetupCommand.



4
5
6
7
8
# File 'lib/toodledo/command_line/setup_command.rb', line 4

def initialize(client)
  super(client, 'setup', false)
  self.short_desc = "Setup the configuration file"
  self.description = "Creates (and edits) the configuration file for Toodledo."
end

Instance Method Details

#execute(args) ⇒ Object



10
11
12
# File 'lib/toodledo/command_line/setup_command.rb', line 10

def execute(args)
  client.setup
end