Class: Patcmd::CLI::AddCommand
- Inherits:
-
BaseCommand
- Object
- Thor
- BaseCommand
- Patcmd::CLI::AddCommand
- Defined in:
- lib/patcmd/cli/commands/add_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
#add ⇒ Object
17 18 19 20 21 22 |
# File 'lib/patcmd/cli/commands/add_command.rb', line 17 def add task = validate_task(task) config_manager.add_task(task) puts "Added task '#{task["name"]}' under category '#{task["category"]}' with action '#{task["action"]}'." end |