class SocialSnippet::CommandLine::SSpm::SubCommands::SearchCommand

Public Instance Methods

define_options() click to toggle source
# File lib/social_snippet/command_line/sspm/sub_commands/search_command.rb, line 15
def define_options
  define_option :name, :type => :flag, :short => true, :default => true
  define_option :desc, :type => :flag, :short => true, :default => true
  define_option :url, :type => :flag, :short => true, :default => false
  define_option :installed, :type => :flag, :short => true, :default => true
end
desc() click to toggle source
# File lib/social_snippet/command_line/sspm/sub_commands/search_command.rb, line 11
def desc
  "Search for repository by keyword"
end
run() click to toggle source
# File lib/social_snippet/command_line/sspm/sub_commands/search_command.rb, line 22
def run
  if has_next_token?
    core.api.search_repositories next_token, options
  else
    help
  end
end
usage() click to toggle source
# File lib/social_snippet/command_line/sspm/sub_commands/search_command.rb, line 5
    def usage
      <<EOF
Usage: sspm search [options] [--] <keyword>
EOF
    end