Module: RuboCop::CLI::Command Private

Defined in:
lib/rubocop/cli/command.rb,
lib/rubocop/cli/command/lsp.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/show_docs_url.rb,
lib/rubocop/cli/command/execute_runner.rb,
lib/rubocop/cli/command/suggest_extensions.rb,
lib/rubocop/cli/command/auto_generate_config.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Home of subcommands in the CLI.

Defined Under Namespace

Classes: AutoGenerateConfig, Base, ExecuteRunner, InitDotfile, Lsp, ShowCops, ShowDocsUrl, SuggestExtensions, Version

Class Method Summary collapse

Class Method Details

.run(env, name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

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



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

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