A simple pomodoro timer for the command line.
go run main.go <config file>
If the configuration file is not provided, the program will look for a file named config.json
in the same directory as the executable. If no configuration file is found, the program will use the default configuration. If any of the values in the configuration file are invalid, the program will use the default value for that field.
The configuration file is a JSON file with the following fields:
shortBreakLength
- The length of the short break in secondslongBreakLength
- The length of the long break in secondspomodoroLength
- The length of the pomodoro in secondsbreakInterval
- The number of pomodoros before a long breakpauseAfterPomodoro
- Whether or not to pause after a pomodoropauseAfterBreak
- Whether or not to pause after a breakshortBreakMessage
- The message to display when a short break startslongBreakMessage
- The message to display when a long break startspomodoroMessage
- The message to display when a pomodoro starts