Sha256: 364f85d7c1e113fcd140eb9804d57b42a9fc2cc4b71a17adb7528efef2553f2b

Contents?: true

Size: 386 Bytes

Versions: 5

Compression:

Stored size: 386 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  class CLI
    module Command
      # Display version.
      # @api private
      class Version < Base
        self.command_name = :version

        def run
          puts RuboCop::Version::STRING if @options[:version]
          puts RuboCop::Version.verbose(env: env) if @options[:verbose_version]
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubocop-1.70.0 lib/rubocop/cli/command/version.rb
rubocop-1.69.2 lib/rubocop/cli/command/version.rb
rubocop-1.69.1 lib/rubocop/cli/command/version.rb
rubocop-1.69.0 lib/rubocop/cli/command/version.rb
rubocop-1.68.0 lib/rubocop/cli/command/version.rb