Module: RuboCop::CLI::Command Private
| Relationships & Source Files |
| Namespace Children |
|
Classes:
AutoGenerateConfig,
Base,
ExecuteRunner,
InitDotfile,
LSP,
ListEnabledCopsFor,
MCP,
ShowCops,
ShowDocsUrl,
SuggestExtensions,
Version
|
| Defined in: |
lib/rubocop/cli/command.rb, lib/rubocop/cli/command/auto_generate_config.rb, lib/rubocop/cli/command/base.rb, lib/rubocop/cli/command/execute_runner.rb, lib/rubocop/cli/command/init_dotfile.rb, lib/rubocop/cli/command/list_enabled_cops_for.rb, lib/rubocop/cli/command/lsp.rb, lib/rubocop/cli/command/mcp.rb, lib/rubocop/cli/command/show_cops.rb, lib/rubocop/cli/command/show_docs_url.rb, lib/rubocop/cli/command/suggest_extensions.rb, lib/rubocop/cli/command/version.rb
|
Overview
Home of subcommands in the CLI.
Class Method Summary
-
.run(env, name)
Internal use only
Internal use only
Find the command with a given name and run it in an environment.
-
.class_for(name)
private
Internal use only
Internal use only
Class Method Details
.class_for(name)
This method is for internal use only.
[ GitHub ]
# File 'lib/rubocop/cli/command.rb', line 16
def class_for(name)
Base.by_command_name(name)
end
.run(env, name)
This method is for internal use only.
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