Module: Tr3llo::Command::Card::Comment
Instance Method Summary collapse
Instance Method Details
#execute(key) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/3llo/command/card/comment.rb', line 7 def execute(key) card_id = Entities.parse_id(:card, key) assert_card_id!(card_id, key) interface = Application.fetch_interface!() interface.print_frame do text = interface.input.multiline("Comment:").join("") API::Card.comment(card_id, text) interface.puts("Comment has been posted") end end |