Add todo.txt pom and its dependencies

This commit is contained in:
Ethan Lane 2025-05-02 10:47:44 +01:00
parent 1e7adfa51c
commit af5315c5b9
10 changed files with 403 additions and 0 deletions

View file

@ -0,0 +1,19 @@
class PomoLogger
attr_accessor :options
def initialize opts
@options = opts
end
def log_pomodoro_started task
TerminalNotifierLogger.new.notify_start(task)
FileLogger.new(options[:pomodoro_log_file]).notify_start(task)
end
def log_pomodoro_completed task
TerminalNotifierLogger.new.notify_completed(task)
FileLogger.new(options[:pomodoro_log_file]).notify_completed(task)
end
end