Module: Tr3llo::Command::Label::Remove
Instance Method Summary collapse
Instance Method Details
#execute(label_key) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/3llo/command/label/remove.rb', line 7 def execute(label_key) label_id = Entities.parse_id(:label, label_key) assert_label_id!(label_id, label_key) interface = Application.fetch_interface!() interface.print_frame do API::Label.delete(label_id) interface.puts("Label has been deleted.") end end |