Class: Helm::Commands::List

Inherits:
Command
  • Object
show all
Defined in:
lib/helm/commands/list.rb

Instance Attribute Summary

Attributes inherited from Command

#session

Instance Method Summary collapse

Methods inherited from Command

#initialize, #parameters

Constructor Details

This class inherits a constructor from Helm::Commands::Command

Instance Method Details

#runObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/helm/commands/list.rb', line 4

def run
  parameters :filter

  filter = session[:filter] || "responsible:me state:open milestone:next"

  puts "Tickets with filter \"#{filter}\""
  session.tickets(filter).each do |ticket|
    puts "  ##{ticket.id} #{ticket.title}"
  end
end