module RuboCop::CLI::Command

Home of subcommands in the CLI. @api private

Public Class Methods

run(env, name) click to toggle source

Find the command with a given name and run it in an environment.

# File lib/rubocop/cli/command.rb, line 10
def run(env, name)
  class_for(name).new(env).run
end

Private Class Methods

class_for(name) click to toggle source
# File lib/rubocop/cli/command.rb, line 16
def class_for(name)
  Base.by_command_name(name)
end