Sha256: 8b36a1a9f951cc580370a9bdc855b9be5084da823cb7bc1b497417a935577f64

Contents?: true

Size: 983 Bytes

Versions: 28

Compression:

Stored size: 983 Bytes

Contents

# frozen_string_literal: true
require 'rubygems/command'
require 'rubygems/query_utils'

class Gem::Commands::SearchCommand < Gem::Command
  include Gem::QueryUtils

  def initialize
    super 'search', 'Display remote gems whose name matches REGEXP',
         :name => //, :domain => :remote, :details => false, :versions => true,
         :installed => nil, :version => Gem::Requirement.default

    add_query_options
  end

  def arguments # :nodoc:
    "REGEXP        regexp to search for in gem name"
  end

  def defaults_str # :nodoc:
    "--remote --no-details"
  end

  def description # :nodoc:
    <<-EOF
The search command displays remote gems whose name matches the given
regexp.

The --details option displays additional details from the gem but will
take a little longer to complete as it must download the information
individually from the index.

To list local gems use the list command.
    EOF
  end

  def usage # :nodoc:
    "#{program_name} [REGEXP]"
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
rubygems-update-3.2.26 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.25 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.24 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.23 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.22 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.21 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.20 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.19 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.18 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.17 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.16 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.15 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.14 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.13 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.12 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.11 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.10 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.9 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.8 lib/rubygems/commands/search_command.rb
rubygems-update-3.2.7 lib/rubygems/commands/search_command.rb