Module: Tr3llo::Command::Label::List

Extended by:
List
Included in:
List
Defined in:
lib/3llo/command/label/list.rb

Instance Method Summary collapse

Instance Method Details

#execute(board_id) ⇒ Object



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

def execute(board_id)
  interface = Application.fetch_interface!()
  labels = API::Label.find_all_by_board(board_id)

  interface.print_frame do
    interface.puts(View::Label::List.render(labels))
  end
end