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.85.27 lib/cc/cli/engines/list.rb
codeclimate-0.85.26 lib/cc/cli/engines/list.rb
codeclimate-0.85.25 lib/cc/cli/engines/list.rb
codeclimate-0.85.24 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.54 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.53 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.52 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.51 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.50 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.49 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.48 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.47 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.46 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.45 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.44 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.43 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.42 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.41 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.40 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.39 lib/cc/cli/engines/list.rb