Versions in this module Expand all Collapse all v1 v1.5.0 Jul 19, 2026 Changes in this version + const Version + var ColorHint = lipgloss.AdaptiveColor + var ColorLongBreak = lipgloss.AdaptiveColor + var ColorMain = lipgloss.AdaptiveColor + var ColorSecondary = lipgloss.AdaptiveColor + var ColorShortBreak = lipgloss.AdaptiveColor + var ColorWork = lipgloss.AdaptiveColor + var Stderr io.Writer = os.Stderr + var Stdin io.Reader = os.Stdin + var Stdout io.Writer = os.Stdout + func AmbientSoundPath() string + func ConfigFilePath() string + func DBFilePath() string + func Dir() string + func SoundOpts() []string + func StatusFilePath() string + type CLIConfig struct + StartTime time.Time + Tags []string + type CLIOptions struct + AmbientSound string + BreakSound string + DisableNotify bool + LongBreak string + LongBreakInterval uint + SessionCmd string + ShortBreak string + Since string + SoundOnBreak bool + Strict bool + Tags string + Work string + WorkSound string + type Config struct + CLI CLIConfig + Display DisplayConfig + LongBreak SessionConfig + Notifications NotificationConfig + Settings SettingsConfig + ShortBreak SessionConfig + Style Style + Work SessionConfig + func New(opts ...Option) (*Config, error) + func (c *Config) Validate() error + type DisplayConfig struct + DarkTheme bool + type FilterConfig struct + EndTime time.Time + StartTime time.Time + Tags []string + func Filter(ctx *cli.Context) *FilterConfig + type NotificationConfig struct + Enabled bool + type Option func(*Config) error + func WithCLIConfig(ctx *cli.Context) Option + func WithPromptConfig(configPath string) Option + func WithViperConfig(configPath string) Option + type PromptOptions struct + LongBreakDuration int + LongBreakInterval int + ShortBreakDuration int + WorkDuration int + type SessionConfig struct + Duration time.Duration + Message string + Sound string + type SessionType string + const LongBreak + const ShortBreak + const Work + type SettingsConfig struct + AmbientSound string + AutoStartBreak bool + AutoStartWork bool + Cmd string + LongBreakInterval int + SoundOnBreak bool + Strict bool + TwentyFourHour bool + type Style struct + Base lipgloss.Style + Hint lipgloss.Style + LongBreak lipgloss.Style + Main lipgloss.Style + Secondary lipgloss.Style + ShortBreak lipgloss.Style + Work lipgloss.Style