Sha256: 033ed19acd85309da6c2305b371a59ee6ac33c2e3d3fd5ccfe5d3e67e7e74d14

Contents?: true

Size: 417 Bytes

Versions: 97

Compression:

Stored size: 417 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.
            sort_by { |engine, _| engine.name }.
            each do |engine, metadata|
              say "- #{engine.name}: #{metadata.description}"
            end
        end
      end
    end
  end
end

Version data entries

97 entries across 97 versions & 2 rubygems

Version Path
codeclimate-0.96.0 lib/cc/cli/engines/list.rb
codeclimate-0.95.0 lib/cc/cli/engines/list.rb
codeclimate-0.94.1 lib/cc/cli/engines/list.rb
codeclimate-0.94.0 lib/cc/cli/engines/list.rb
codeclimate-0.93.0 lib/cc/cli/engines/list.rb
codeclimate-0.92.1 lib/cc/cli/engines/list.rb
codeclimate-0.92.0 lib/cc/cli/engines/list.rb
codeclimate-0.91.0 lib/cc/cli/engines/list.rb
codeclimate-0.90.0 lib/cc/cli/engines/list.rb
codeclimate-0.89.0 lib/cc/cli/engines/list.rb
codeclimate-0.88.0 lib/cc/cli/engines/list.rb
codeclimate-0.87.5 lib/cc/cli/engines/list.rb
codeclimate-0.87.4 lib/cc/cli/engines/list.rb
codeclimate-0.87.3 lib/cc/cli/engines/list.rb
codeclimate-0.87.2 lib/cc/cli/engines/list.rb
codeclimate-0.87.1 lib/cc/cli/engines/list.rb
codeclimate-0.87.0 lib/cc/cli/engines/list.rb
codeclimate-0.86.0 lib/cc/cli/engines/list.rb
codeclimate-0.85.29 lib/cc/cli/engines/list.rb
codeclimate-0.85.28 lib/cc/cli/engines/list.rb