Class: Markdo::IcsCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/markdo/commands/ics_command.rb

Instance Method Summary collapse

Methods inherited from Command

#initialize

Constructor Details

This class inherits a constructor from Markdo::Command

Instance Method Details

#runObject



8
9
10
11
12
13
# File 'lib/markdo/commands/ics_command.rb', line 8

def run
  ics_exporter = IcsExporter.new(task_collection)
  ics = ics_exporter.to_ics

  @stdout.puts(ics)
end