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-fede-0.85.38 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.37 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.36 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.35 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.33 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.32 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.31 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.30 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.21 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.24 lib/cc/cli/engines/list.rb
codeclimate-fede-0.85.23 lib/cc/cli/engines/list.rb
codeclimate-0.85.23 lib/cc/cli/engines/list.rb
codeclimate-0.85.22 lib/cc/cli/engines/list.rb
codeclimate-0.85.21 lib/cc/cli/engines/list.rb
codeclimate-0.85.19 lib/cc/cli/engines/list.rb
codeclimate-0.85.18 lib/cc/cli/engines/list.rb
codeclimate-0.85.17 lib/cc/cli/engines/list.rb
codeclimate-0.85.15 lib/cc/cli/engines/list.rb
codeclimate-0.85.14 lib/cc/cli/engines/list.rb
codeclimate-0.85.13 lib/cc/cli/engines/list.rb