Sha256: 46f148d41c5e89b354ed2aed70dd0fefde7e53958de240240771daf87f4e8690

Contents?: true

Size: 381 Bytes

Versions: 37

Compression:

Stored size: 381 Bytes

Contents

module CC
  module CLI
    module Engines
      class List < EngineCommand
        SHORT_HELP = "List all available engines".freeze

        def run
          say "Available engines:"
          engine_registry_list.sort_by { |name, _| name }.each do |name, attributes|
            say "- #{name}: #{attributes["description"]}"
          end
        end
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
codeclimate-0.69.0 lib/cc/cli/engines/list.rb
codeclimate-0.68.0 lib/cc/cli/engines/list.rb
codeclimate-0.67.0 lib/cc/cli/engines/list.rb
codeclimate-0.66.0 lib/cc/cli/engines/list.rb
codeclimate-0.65.0 lib/cc/cli/engines/list.rb
codeclimate-0.64.0 lib/cc/cli/engines/list.rb
codeclimate-0.63.7 lib/cc/cli/engines/list.rb
codeclimate-0.63.6 lib/cc/cli/engines/list.rb
codeclimate-0.63.5 lib/cc/cli/engines/list.rb
codeclimate-0.63.4 lib/cc/cli/engines/list.rb
codeclimate-0.63.3 lib/cc/cli/engines/list.rb
codeclimate-0.63.2 lib/cc/cli/engines/list.rb
codeclimate-0.63.1 lib/cc/cli/engines/list.rb
codeclimate-0.63.0 lib/cc/cli/engines/list.rb
codeclimate-0.62.0 lib/cc/cli/engines/list.rb
codeclimate-0.61.1 lib/cc/cli/engines/list.rb
codeclimate-0.61.0 lib/cc/cli/engines/list.rb
codeclimate-0.60.1 lib/cc/cli/engines/list.rb
codeclimate-0.60.0 lib/cc/cli/engines/list.rb
codeclimate-0.59.1 lib/cc/cli/engines/list.rb