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.59.0 lib/cc/cli/engines/list.rb
codeclimate-0.58.0 lib/cc/cli/engines/list.rb
codeclimate-0.57.0 lib/cc/cli/engines/list.rb
codeclimate-0.56.0 lib/cc/cli/engines/list.rb
codeclimate-0.55.0 lib/cc/cli/engines/list.rb
codeclimate-0.54.0 lib/cc/cli/engines/list.rb
codeclimate-0.53.0 lib/cc/cli/engines/list.rb
codeclimate-0.52.0 lib/cc/cli/engines/list.rb
codeclimate-0.51.3 lib/cc/cli/engines/list.rb
codeclimate-0.51.2 lib/cc/cli/engines/list.rb
codeclimate-0.51.1 lib/cc/cli/engines/list.rb
codeclimate-0.51.0 lib/cc/cli/engines/list.rb
codeclimate-0.50.0 lib/cc/cli/engines/list.rb
codeclimate-0.49.0 lib/cc/cli/engines/list.rb
codeclimate-0.48.0 lib/cc/cli/engines/list.rb
codeclimate-0.47.0 lib/cc/cli/engines/list.rb
codeclimate-0.46.0 lib/cc/cli/engines/list.rb