Class: CC::CLI::Engines::List
- Inherits:
-
EngineCommand
- Object
- Command
- EngineCommand
- CC::CLI::Engines::List
- Defined in:
- lib/cc/cli/engines/list.rb
Constant Summary
Constants inherited from Command
Instance Method Summary collapse
Methods inherited from Command
command_name, #execute, #fatal, #initialize, #require_codeclimate_yml, #say, #warn
Constructor Details
This class inherits a constructor from CC::CLI::Command
Instance Method Details
#run ⇒ Object
5 6 7 8 9 10 |
# File 'lib/cc/cli/engines/list.rb', line 5 def run say "Available engines:" engines_registry_list.sort_by { |name, _| name }.each do |name, attributes| say "- #{name}: #{attributes["description"]}" end end |