Sha256: 1be718fb36395858785ffe2cc33870408b403c95896c6f610f5b2832a1ce7495

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 Bytes

Contents

command :info do |c|
  c.syntax = 'wwdc info [SESSION]'
  c.summary = 'Get information about a session by its number'
  c.description = ''

  c.action do |args, options|
    say_error "Missing session number" and abort unless @number = (Integer(args.first) rescue nil)

    session = get(path: "/2013/sessions/#{@number}")

    describe session
  end
end

alias_command :session, :info

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wwdc-0.0.2 ./lib/wwdc/commands/info.rb
wwdc-0.0.1 ./lib/wwdc/commands/info.rb