class Temjin::CardCommand::ListCommand
Public Instance Methods
execute()
click to toggle source
# File lib/temjin/card_command/list_command.rb, line 8 def execute # TODO: should also be included in the command setup user = find_user(config.username) cards = find_list(user, board, list).cards cards = cards.map do |c| {:id => c.id, :name => c.name, :desc => c.desc} end cards.each do |card| Formatador.display_line("[yellow]#{card[:id]}[/] - #{card[:name]}") end end