summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/search_command.rb
blob: 92d4b3672e808c6cdce7301b3fc5de705b0897a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'rubygems/command'
require 'rubygems/commands/list_command'

class Gem::Commands::SearchCommand < Gem::Commands::ListCommand

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

    @defaults[:domain] = :remote
  end

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

end