module RuboCop::CLI::Command

def class_for(name)

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

def run(env, name)

Find the command with a given name and run it in an environment.
def run(env, name)
  class_for(name).new(env).run
end