Sha256: a2d27295cdacfd4959fed32ad2efb2623cb4633d2f5f46cfb8ab04391bf57985

Contents?: true

Size: 323 Bytes

Versions: 50

Compression:

Stored size: 323 Bytes

Contents

module CC
  module CLI
    module Engines
      class List < EngineCommand
        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

50 entries across 50 versions & 1 rubygems

Version Path
codeclimate-0.24.3 lib/cc/cli/engines/list.rb
codeclimate-0.24.2 lib/cc/cli/engines/list.rb
codeclimate-0.24.1 lib/cc/cli/engines/list.rb
codeclimate-0.24.0 lib/cc/cli/engines/list.rb
codeclimate-0.23.0 lib/cc/cli/engines/list.rb
codeclimate-0.22.3 lib/cc/cli/engines/list.rb
codeclimate-0.22.2 lib/cc/cli/engines/list.rb
codeclimate-0.22.1 lib/cc/cli/engines/list.rb
codeclimate-0.22.0 lib/cc/cli/engines/list.rb
codeclimate-0.21.4 lib/cc/cli/engines/list.rb
codeclimate-0.21.3 lib/cc/cli/engines/list.rb
codeclimate-0.21.2 lib/cc/cli/engines/list.rb
codeclimate-0.21.1 lib/cc/cli/engines/list.rb
codeclimate-0.21.0 lib/cc/cli/engines/list.rb
codeclimate-0.20.2 lib/cc/cli/engines/list.rb
codeclimate-0.20.1 lib/cc/cli/engines/list.rb
codeclimate-0.20.0 lib/cc/cli/engines/list.rb
codeclimate-0.19.2 lib/cc/cli/engines/list.rb
codeclimate-0.19.1 lib/cc/cli/engines/list.rb
codeclimate-0.19.0 lib/cc/cli/engines/list.rb