Sha256: f7f99e5a5833f8479857ccebd42ddfd03aa2f2dee660fccafa75159c21f83b72

Contents?: true

Size: 430 Bytes

Versions: 264

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  class CLI
    # Home of subcommands in the CLI.
    # @api private
    module Command
      class << self
        # Find the command with a given name and run it in an environment.
        def run(env, name)
          class_for(name).new(env).run
        end

        private

        def class_for(name)
          Base.by_command_name(name)
        end
      end
    end
  end
end

Version data entries

264 entries across 255 versions & 24 rubygems

Version Path
rubocop-0.91.1 lib/rubocop/cli/command.rb
rubocop-0.91.0 lib/rubocop/cli/command.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/rubocop-0.90.0/lib/rubocop/cli/command.rb
rubocop-0.90.0 lib/rubocop/cli/command.rb