Class: Taskwarrior::Calendar::App::ConvertCommand
- Inherits:
-
BaseCommand
- Object
- Clamp::Command
- BaseCommand
- Taskwarrior::Calendar::App::ConvertCommand
- Defined in:
- lib/taskwarrior/calendar/app/convert.rb
Instance Method Summary collapse
Methods inherited from BaseCommand
Instance Method Details
#execute ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/taskwarrior/calendar/app/convert.rb', line 13 def execute calendar = Taskwarrior::Calendar.new(filter:, alarm: alarm?) return calendar.publish(filename:) if !filename.nil? puts calendar.to_ical rescue StandardError => e bailout(e.cause || e.) end |