Class: Todos::Commands::GeneralCommands

Inherits:
Object
  • Object
show all
Includes:
Menu
Defined in:
lib/todos_cli.rb

Defined Under Namespace

Classes: AddTask, BasicTaskList, Exit, ListContexts, ListDoneTasks, ListProjects, ListUndoneTasks

Class Method Summary collapse

Methods included from Menu

append_features

Class Method Details

.call_command(command) ⇒ Object



164
165
166
# File 'lib/todos_cli.rb', line 164

def self.call_command(command)
  command.execute
end

.runObject



160
161
162
# File 'lib/todos_cli.rb', line 160

def self.run
  loop { menu }
end