config

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package config loads, stores, and provides default values for work and break tasks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig() error

func ProgramOptions

func ProgramOptions() []tea.ProgramOption

Types

type Config

type Config struct {
	Work       Task
	Break      Task
	FullScreen bool
}
var (
	//go:embed pomo.png
	Icon []byte
	C    Config
)

type Notification added in v0.2.0

type Notification struct {
	Enabled bool
	Title   string
	Message string
	Icon    string
}

type Task

type Task struct {
	Title        string
	Duration     time.Duration
	Then         []string
	Notification Notification
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL