Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tomato ¶
type Tomato struct {
// State is the current timer state (Work, ShortBreak, or LongBreak).
state.State
// Count is the number of work sessions completed today, used to
// determine whether the next break should be short or long (every
// 4th tomato triggers a long break).
Count int
// Elapsed is the number of minutes that have elapsed in the current
// session. Used for progress tracking and session resumption.
Elapsed int
// Tag is an optional label for categorizing the work session
// (e.g., "coding", "research"). Tags are only saved for completed
// work sessions, not breaks.
Tag string
}
Tomato represents a pomodoro session (work or break). It tracks the current state, number of completed work sessions today, elapsed time, and an optional tag for categorization.
Click to show internal directories.
Click to hide internal directories.