Sha256: b42eb70c305a072595ccfe6d89f65028c63c66345a69d6ff4a5d8196e14923cb

Contents?: true

Size: 859 Bytes

Versions: 7

Compression:

Stored size: 859 Bytes

Contents

require 'rubygems/command'
require 'rubygems/commands/query_command'

class Gem::Commands::SearchCommand < Gem::Commands::QueryCommand

  def initialize
    super 'search', 'Display remote gems whose name contains STRING'

    remove_option '--name-matches'

    defaults[:domain] = :remote
  end

  def arguments # :nodoc:
    "STRING        fragment of gem name to search for"
  end

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

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

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} [STRING]"
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubygems-update-2.2.5 lib/rubygems/commands/search_command.rb
rubygems-update-2.2.4 lib/rubygems/commands/search_command.rb
rubygems-update-2.2.3 lib/rubygems/commands/search_command.rb
rubygems-update-2.2.2 lib/rubygems/commands/search_command.rb
rubygems-update-2.2.1 lib/rubygems/commands/search_command.rb
rubygems-update-2.2.0 lib/rubygems/commands/search_command.rb
rubygems-update-2.2.0.rc.1 lib/rubygems/commands/search_command.rb