Module: Tr3llo::Command::List::Cards

Extended by:
Cards
Included in:
Cards
Defined in:
lib/3llo/command/list/cards.rb

Instance Method Summary collapse

Instance Method Details

#execute(list_key) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/3llo/command/list/cards.rb', line 7

def execute(list_key)
  list_id = Entities.parse_id(:list, list_key)
  assert_list_id!(list_id, list_key)

  cards = list_cards(list_id)

  interface.print_frame do
    interface.puts(View::List::Cards.render(cards))
  end
end