config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: MIT Imports: 10 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

Types

type ASCIIArt added in v0.7.0

type ASCIIArt struct {
	Enabled bool
	Font    string
	Color   string
}

type Config

type Config struct {
	Work          Task
	Break         Task
	AskToContinue bool
	ASCIIArt      ASCIIArt
}
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
}

type TaskType added in v0.5.0

type TaskType int
const (
	WorkTask TaskType = iota
	BreakTask
)

func (TaskType) GetTask added in v0.5.0

func (t TaskType) GetTask() *Task

func (TaskType) Opposite added in v0.5.0

func (t TaskType) Opposite() TaskType

func (TaskType) String added in v0.5.3

func (t TaskType) String() string

Jump to

Keyboard shortcuts

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