Sha256: 2afdcd7acb6114c953eed4be18ba1d03ce3cf23ecef89c41c66f396af49b3180
Contents?: true
Size: 411 Bytes
Versions: 26
Compression:
Stored size: 411 Bytes
Contents
# frozen_string_literal: true module RuboCop class CLI # Home of subcommands in the CLI. module Command class << self # Find the command with a given name and run it in an environment. def run(env, name) class_for(name).new(env).run end private def class_for(name) Base.by_command_name(name) end end end end end
Version data entries
26 entries across 25 versions & 5 rubygems