Module: RuboCop::CLI::Command

Defined in:
lib/rubocop/cli/command.rb,
lib/rubocop/cli/command/base.rb,
lib/rubocop/cli/command/version.rb,
lib/rubocop/cli/command/show_cops.rb,
lib/rubocop/cli/command/init_dotfile.rb,
lib/rubocop/cli/command/execute_runner.rb,
lib/rubocop/cli/command/auto_genenerate_config.rb

Overview

Home of subcommands in the CLI.

Defined Under Namespace

Classes: AutoGenerateConfig, Base, ExecuteRunner, InitDotfile, ShowCops, Version

Class Method Summary collapse

Class Method Details

.run(env, name) ⇒ Object

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


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

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