Module: Tr3llo::Command::Card::Show

Extended by:
Show
Included in:
Show
Defined in:
lib/3llo/command/card/show.rb

Instance Method Summary collapse

Instance Method Details

#execute(key) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/3llo/command/card/show.rb', line 7

def execute(key)
  card_id = Entities.parse_id(:card, key)
  assert_card_id!(card_id, key)

  card = get_card(card_id)
  checklists = get_checklist(card_id)

  interface = Application.fetch_interface!()

  interface.print_frame do
    interface.puts(View::Card::Show.render(card, checklists))
  end
end