Module: Tr3llo::Command::Card::AddLabel
Instance Method Summary collapse
Instance Method Details
#execute(key, board_id) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/3llo/command/card/add_label.rb', line 7 def execute(key, board_id) card_id = Entities.parse_id(:card, key) assert_card_id!(card_id, key) card = API::Card.find(card_id) interface = Application.fetch_interface!() interface.print_frame do label_ids = select_labels(interface, card, board_id) add_labels(card_id, label_ids) interface.puts("Chosen labels have been added to the card.") end end |