Class: Pomodoro::Commands::BitBar

Inherits:
Command
  • Object
show all
Defined in:
lib/pomodoro/commands/bitbar.rb

Overview

TODO: Use I18n.

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from Pomodoro::Commands::Command

Instance Method Details

#runObject


15
16
17
# File 'lib/pomodoro/commands/bitbar.rb', line 15

def run
  Pomodoro::Commands::BitBarUI.main(self.today_list, self.task_list)
end

#task_listObject


10
11
12
13
# File 'lib/pomodoro/commands/bitbar.rb', line 10

def task_list
  parse_task_list(self.config)
rescue Pomodoro::Config::ConfigError
end

#today_listObject


5
6
7
8
# File 'lib/pomodoro/commands/bitbar.rb', line 5

def today_list
  parse_today_list(self.config).task_list
rescue Pomodoro::Config::ConfigError
end