Module: Tr3llo::Command::Card::EditChecklist
- Extended by:
- EditChecklist
- Included in:
- EditChecklist
- Defined in:
- lib/3llo/command/card/edit_checklist.rb
Instance Method Summary collapse
Instance Method Details
#execute(checklist_key) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/3llo/command/card/edit_checklist.rb', line 7 def execute(checklist_key) checklist_id = Entities.parse_id(:checklist, checklist_key) checklist = API::Checklist.get(checklist_id) interface = Application.fetch_interface!() interface.print_frame do name = interface.input.ask("Checklist name:", required: true, value: checklist.name) API::Checklist.update(checklist_id, name: name) interface.puts("Checklist has been updated") end end |