Sha256: 1a57540b2b990a2015cc830b7e70c709b24929f02c29f7988b71c17ce6422799
Contents?: true
Size: 520 Bytes
Versions: 3
Compression:
Stored size: 520 Bytes
Contents
command :search do |c| c.syntax = 'wwdc search [QUERY]' c.summary = 'Find sessions containing the specified search terms' c.option '-y', '--year YEAR', 'WWDC Year' c.action do |args, options| determine_query!(args, options) determine_year!(args, options) if options.year @results = get(path: "search", query: {q: @query, year: @year})['results'] say_warning "No results" and abort if @results.empty? describe *@results end end alias_command :'?', :search alias_command :query, :search
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wwdc-1.1.1 | ./lib/wwdc/commands/search.rb |
wwdc-1.1.0 | ./lib/wwdc/commands/search.rb |
wwdc-1.0.0 | ./lib/wwdc/commands/search.rb |