Class: CC::CLI::Engines::List

Inherits:
EngineCommand show all
Defined in:
lib/cc/cli/engines/list.rb

Constant Summary

Constants inherited from Command

Command::CODECLIMATE_YAML

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

#runObject



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