Sha256: f5ad2628f89ef9f7f448c3553a52e01f6a96c0e824786227e3c15b838dc6ba29
Contents?: true
Size: 667 Bytes
Versions: 2
Compression:
Stored size: 667 Bytes
Contents
require 'rubygems/command' require 'rubygems/commands/query_command' module Gem module Commands class ListCommand < QueryCommand def initialize super 'list', 'Display gems whose name starts with STRING' remove_option('--name-matches') end def arguments # :nodoc: "STRING start of gem name to look for" end def defaults_str # :nodoc: "--local --no-details" end def usage # :nodoc: "#{program_name} [STRING]" end def execute string = get_one_optional_argument || '' options[:name] = /^#{string}/i super end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubygems-update-1.1.0 | lib/rubygems/commands/list_command.rb |
rubygems-update-1.1.1 | lib/rubygems/commands/list_command.rb |