123456789_123456789_123456789_123456789_123456789_

Module: RuboCop::CLI::Command Private

Do not use. This module is for internal use only.

Overview

Home of subcommands in the CLI.

Class Method Summary

Class Method Details

.class_for(name) (private)

[ GitHub ]

  
# File 'lib/rubocop/cli/command.rb', line 16

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

.run(env, name)

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

[ GitHub ]

  
# File 'lib/rubocop/cli/command.rb', line 10

def run(env, name)
  class_for(name).new(env).run
end