module Tr3llo::Command::Card::RemoveChecklist

Public Instance Methods

execute(checklist_key) click to toggle source
# File lib/3llo/command/card/remove_checklist.rb, line 7
def execute(checklist_key)
  checklist_id = Entities.parse_id(:checklist, checklist_key)
  API::Checklist.delete(checklist_id)

  interface = Application.fetch_interface!()

  interface.print_frame do
    interface.puts("Checklist has been removed")
  end
end