Class: Patcmd::CLI::ListCommand
- Inherits:
-
BaseCommand
- Object
- Thor
- BaseCommand
- Patcmd::CLI::ListCommand
- Defined in:
- lib/patcmd/cli/commands/list_command.rb
Constant Summary
Constants inherited from BaseCommand
Instance Method Summary collapse
Methods inherited from BaseCommand
Methods included from Helpers::Logger
Methods included from Helpers::TaskHelper
Constructor Details
This class inherits a constructor from Patcmd::CLI::BaseCommand
Instance Method Details
#list ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/patcmd/cli/commands/list_command.rb', line 9 def list tasks = config_manager.all_tasks if tasks.empty? puts "No tasks configured." else tasks.each { |task| display_task(task) } end end |